From 18b4caf6038235c4805ce57c553194f5faaae30e Mon Sep 17 00:00:00 2001 From: Bas des Tombe Date: Fri, 28 Jul 2023 15:14:11 +0200 Subject: [PATCH] Fixed to_mf_netcdf() encodings --- src/dtscalibration/datastore.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dtscalibration/datastore.py b/src/dtscalibration/datastore.py index 533fe650..156c8bab 100644 --- a/src/dtscalibration/datastore.py +++ b/src/dtscalibration/datastore.py @@ -662,7 +662,7 @@ def get_default_encoding(self, time_chunks_from_key=None): v['dtype'] = 'int32' # v['_FillValue'] = -9999 # Int does not support NaN - if np.issubdtype(self[k].dtype, str): + if np.issubdtype(self[k].dtype, str) or np.issubdtype(self[k].dtype, object): # Compression not supported for variable length strings # https://github.com/Unidata/netcdf4-python/issues/1205 v["zlib"] = False