Closed jbwillis closed 11 months ago
Thank you for the report and documenting the workaround. There is a fix ready so should be released soon. You can also install the fixed development version directly with pip install git+https://github.com/ESA-VirES/VirES-Python-Client.git@master
Fixed in v0.11.2
cdflib recently released their v1.0 version. This included many breaking changes (see https://github.com/MAVENSDC/cdflib/releases/tag/1.0.0), and has introduced an error in
viresclient
when converting data to an xarray or a dataframe.Code to reproduce the error
Based on the getting started example from here: https://notebooks.vires.services/notebooks/02a__intro-swarm-viresclient
(note this is copied from a jupyter notebook):
This results in the following error:
Running
pip show cdflib
indicates that version 1.0.4 is installed.Workaround
To work around this, I can specify the version of
cdflib
that pip installsWith
cdflib==0.4.9
installed, no error occurs when converting toxarray
.