xarray-contrib / xvec

Vector data cubes for Xarray
https://xvec.readthedocs.io
MIT License
93 stars 9 forks source link

running xvec with Python 3.9 #34

Closed edzer closed 1 year ago

edzer commented 1 year ago

Installed with pip from GH, running gives

$ python3 
Python 3.9.12 (main, Apr  5 2022, 06:56:58) 
[GCC 7.5.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import xvec as axv
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/edzer/anaconda3/lib/python3.9/site-packages/xvec/__init__.py", line 3, in <module>
    from .accessor import XvecAccessor  # noqa
  File "/home/edzer/anaconda3/lib/python3.9/site-packages/xvec/accessor.py", line 15, in <module>
    class XvecAccessor:
  File "/home/edzer/anaconda3/lib/python3.9/site-packages/xvec/accessor.py", line 205, in XvecAccessor
    variable_crs: Mapping[Any, Any] | None = None,
TypeError: unsupported operand type(s) for |: '_GenericAlias' and 'NoneType'
martinfleis commented 1 year ago

Thanks for the catch, again! It is fixed in https://github.com/xarray-contrib/xvec/pull/33 which I'll merge once CI gets fully green.

edzer commented 1 year ago

Fantastic, thanks!