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