calliope-project / calliope

A multi-scale energy systems modelling framework

Home Page:https://www.callio.pe

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NetCDF error on saving model to file

brynpickering opened this issue · comments

Problem description

Latest CI runs have flagged the issue with libnectdf >= 4.9.0 whereby compression of string/object arrays is not possible (Unidata/netcdf-c#2480). Turns out that these arrays were never compressed anyway, and the upstream bug-fix stops their lack of compression from being silently ignored.

Solution is likely to skip compression of all arrays with object / string dtypes when setting up the encoding dictionary.

Calliope version

v0.7.0-dev, but potentially any new install of Calliope v0.6.x since we do not pin libnetcdf on conda forge.