From 687345f2d137b292b9cebf2da58148d50730bbdc Mon Sep 17 00:00:00 2001
From: Simon Grasse <s.grasse@fz-juelich.de>
Date: Wed, 24 Apr 2024 15:21:29 +0200
Subject: [PATCH] remove: encoding when writing netcdf file

---
 tests/test_gridding.py | 11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)

diff --git a/tests/test_gridding.py b/tests/test_gridding.py
index ff4592f..b3ea8a7 100644
--- a/tests/test_gridding.py
+++ b/tests/test_gridding.py
@@ -17,17 +17,8 @@ def generate_compliance_report(dataset: xr.Dataset):
     check_suite = CheckSuite()
     check_suite.load_all_available_checkers()
 
-    encoding = {
-        "time": dataset.time.encoding,
-        "latitude": dataset.latitude.encoding,
-        "longitude": dataset.longitude.encoding,
-        "mean": dataset["mean"].encoding,
-        "std": dataset["std"].encoding,
-        "n": dataset["n"].encoding,
-    }
-
     ds_output_path = Path(__file__).parent / "data_sample.nc"
-    dataset.to_netcdf(ds_output_path, encoding=encoding)
+    dataset.to_netcdf(ds_output_path)
 
     return_value, errors = ComplianceChecker.run_checker(
         str(ds_output_path),
-- 
GitLab