pin xarray to "2022.3.0", a stable version for pycalibration
Description
Pin xarray to a lower version "2022.3.0" as the latest version of "2022.6.0" introduces an error
How Has This Been Tested?
tested on max-exfl016 and max-exfl017
Relevant Documents (optional)
___________________ ERROR collecting tests/test_cal_tools.py ___________________
tests/test_cal_tools.py:11: in <module>
from cal_tools.agipdlib import AgipdCorrections, CellRange
.venv/lib/python3.8/site-packages/cal_tools/agipdlib.py:12: in <module>
from extra_data import DataCollection, H5File, by_id, components
.venv/lib/python3.8/site-packages/extra_data/components.py:7: in <module>
import xarray
.venv/lib/python3.8/site-packages/xarray/__init__.py:1: in <module>
from . import testing, tutorial
.venv/lib/python3.8/site-packages/xarray/testing.py:9: in <module>
from xarray.core import duck_array_ops, formatting, utils
.venv/lib/python3.8/site-packages/xarray/core/duck_array_ops.py:26: in <module>
from . import dask_array_compat, dask_array_ops, dtypes, npcompat, nputils
.venv/lib/python3.8/site-packages/xarray/core/npcompat.py:72: in <module>
_SupportsDType[np.dtype],
/opt/pyenv/versions/3.8.10/lib/python3.8/typing.py:261: in inner
return func(*args, **kwds)
/opt/pyenv/versions/3.8.10/lib/python3.8/typing.py:897: in __class_getitem__
_check_generic(cls, params)
/opt/pyenv/versions/3.8.10/lib/python3.8/typing.py:211: in _check_generic
raise TypeError(f"{cls} is not a generic class")
E TypeError: <class 'numpy.typing._dtype_like._SupportsDType'> is not a generic class
Types of changes
- Bug fix (non-breaking change which fixes an issue)
Checklist:
Reviewers
Edited by Karim Ahmed
Merge request reports
Activity
Filter activity
LGTM, thanks for tracing this down!
Looking at the diff between v2022.03.0 and v2022.06.0 there are indeed lots of changes in typing hints. This may be related to their support for the Python Array API standard. There isn't actually any difference in dependencies as far as I can see.
Thanks, @schmidtp
mentioned in commit 00aff086
changed milestone to %3.6.1
mentioned in merge request !699 (merged)
Please register or sign in to reply