Skip to content

pin xarray to "2022.3.0", a stable version for pycalibration

Karim Ahmed requested to merge fix/pin_xarray into master

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

@kluyvert @schmidtp @roscar

Edited by Karim Ahmed

Merge request reports