Skip to content
Snippets Groups Projects
Commit fbaa0a5f authored by Martin Bergemann's avatar Martin Bergemann :speech_balloon:
Browse files

Continue on error

parent 6b594adb
No related branches found
No related tags found
1 merge request!2Catch error
......@@ -99,6 +99,7 @@ def _rechunk_dataset(dset: xr.Dataset, engine: str = "h5netcdf") -> xr.Dataset:
dset[var].data = dset[var].data.rechunk(chunks)
except Exception as error:
logger.warning("Could not set chunk size for %s: ", var, error.__str__())
continue
logger.debug("Settings encoding of variable %s", var)
dset[var].encoding["chunksizes"] = dset[var].data.chunksize
dset[var].encoding["zlib"] = True
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment