We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ecc82d commit dcd4ca1Copy full SHA for dcd4ca1
xarray_array_testing/base.py
@@ -4,7 +4,6 @@
4
5
import numpy as np
6
import numpy.testing as npt
7
-import xarray as xr
8
from xarray.namedarray._typing import duckarray
9
10
@@ -34,15 +33,6 @@ def assert_dimension_indexers_equal(a, b):
34
33
if isinstance(a, dict):
35
assert a.keys() == b.keys(), f"Different dimensions: {list(a)} vs {list(b)}"
36
37
- values = ((a[k], b[k]) for k in a)
38
- assert all(
39
- (
40
- isinstance(v1, xr.Variable)
41
- and isinstance(v2, xr.Variable)
42
- and v1.dims == v2.dims
43
- and np.equal(v1.data, v2.data)
44
- )
45
- for v1, v2 in values
46
- ), "Differing indexers"
+ assert all(np.equal(a[k], b[k]) for k in a), "Differing indexers"
47
else:
48
npt.assert_equal(a, b)
0 commit comments