File tree Expand file tree Collapse file tree 2 files changed +2
-12
lines changed Expand file tree Collapse file tree 2 files changed +2
-12
lines changed Original file line number Diff line number Diff line change 5
5
from pint .quantity import Quantity
6
6
from pint .unit import Unit
7
7
from xarray import DataArray , register_dataarray_accessor , register_dataset_accessor
8
- from xarray .core .npcompat import IS_NEP18_ACTIVE
9
8
10
9
from . import conversion
11
10
12
- if not hasattr (Quantity , "__array_function__" ):
13
- raise ImportError (
14
- "Imported version of pint does not implement " "__array_function__"
15
- )
16
-
17
- if not IS_NEP18_ACTIVE :
18
- raise ImportError ("NUMPY_EXPERIMENTAL_ARRAY_FUNCTION is not enabled" )
19
-
20
-
21
11
# TODO could/should we overwrite xr.open_dataset and xr.open_mfdataset to make
22
12
# them apply units upon loading???
23
13
# TODO could even override the decode_cf kwarg?
Original file line number Diff line number Diff line change @@ -9,8 +9,8 @@ url = https://github.com/TomNicholas/pint-xarray
9
9
packages = find:
10
10
python_requires = >=3.6
11
11
install_requires =
12
- numpy >= 1.17.1
13
- xarray >= 0.15.1
12
+ numpy >= 1.17
13
+ xarray >= 0.16
14
14
pint >= 0.13
15
15
importlib-metadata; python_version < "3.8"
16
16
You can’t perform that action at this time.
0 commit comments