You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Viresclient found a solution to support cdflib before and after the 1.0 release (see this commit):
@staticmethoddef_get_attr_or_key(obj, attr):
# Used to work around cdflib<1 & >=1 support# cdflib>=1 introduces dataclasses in place of some dictsifisinstance(obj, dict):
returnobj.get(attr, None)
else:
returngetattr(obj, attr, None)
This is much nicer than how e.g. GeospaceLAB did it, which was to simply switch from the old syntax to the new (hence issue #4). I think PyHC should recommend other packages that use cdflib do the same:
CDFlib made a major release 1.0.0 with breaking changes June 2023. It's now up to 1.2.6 as of this writing.
Some PyHC packages don't yet support the new major release so we've pinned the CDFlib version to 0.4.9.
pySPEDAS is the biggest package requiring <1.0.0.
GeospaceLAB is pinned to 0.6.1 because after that it requires >=1.0.0.
The text was updated successfully, but these errors were encountered: