Closed fkuehlein closed 9 months ago
This specific error goes back to cd8ee00 in the context of #160, which made an untested assumption that netCDF4.Dataset
and h5netcdf.legacyapi.Dataset
are sufficiently compatible. Of course, in fact the former has more legacy functionality, such as the Dataset.file_format
variable, which in this case is used only to print out basic metadata.
The broader question is about which API version should be supported going forward. Let's move that discussion, which has been awaiting input from @jdonges, from #12 to here. The easiest solution would be to switch the strict dependency to netCDF4
, which had been an optional dependency before the commit above. Alternatively, we could stick with h5netcdf
and remove or replace the legacy API usage. The primary advantage of h5netcdf
is a smaller installation footprint, because it relies on fewer C libraries.
Alright, I will then make sure to avoid running into this in the tutorial for now.
Discovered this when running the
tutorial_ClimateNetworks.ipynb
notebook, see full output below. Probably not a Problem with pyunicorn itself, right? Could someone confirm this happening to make sure its not the result of some corrupted conda environment I'm using?When running the cell where the ClimateData is loaded,
will return