Complete deprecation of Dataset.dims returning dict #12328
Annotations
10 errors
Run tests:
xarray/tests/test_dataarray.py#L7133
TestStackEllipsis.test_result_as_expected
AssertionError: Left and right DataArray objects are not identical
Differing values:
L
array([1, 1, 2, 2])
R
array([1, 2, 1, 2])
Differing coordinates:
L * x (flat) int64 32B 0 1 0 1
R * x (flat) int64 32B 0 0 1 1
L * y (flat) int64 32B 0 0 1 1
R * y (flat) int64 32B 0 1 0 1
|
Run tests:
xarray/tests/test_dataset.py#L679
TestDataset.test_properties
AssertionError: assert False
+ where False = isinstance(frozenset({'dim1', 'dim2', 'dim3', 'time'}), <class 'xarray.core.utils.Frozen'>)
+ where frozenset({'dim1', 'dim2', 'dim3', 'time'}) = <xarray.Dataset> Size: 2kB\nDimensions: (dim2: 9, dim3: 10, time: 20, dim1: 8)\nCoordinates:\n * dim2 (dim2) float6...76B 0.7378 0.3985 2.316 ... 1.486 -1.432\n var3 (dim3, dim1) float64 640B 1.097 1.314 -0.5677 ... 0.2062 -0.06258.dims
+ and <class 'xarray.core.utils.Frozen'> = utils.Frozen
|
Run tests:
xarray/tests/test_dataset.py#L745
TestDataset.test_warn_ds_dims_deprecation
Failed: DID NOT WARN. No warnings of type (<class 'FutureWarning'>,) were emitted.
Emitted warnings: [].
|
Run tests:
xarray/tests/test_dataset.py#L1252
TestDataset.test_isel
AssertionError: Regex pattern did not match.
Regex: "Dimensions {'not_a_dim'} do not exist. Expected one or more of [\\w\\W]*'dim\\d'[\\w\\W]*'dim\\d'[\\w\\W]*'time'[\\w\\W]*'dim\\d'[\\w\\W]*"
Input: "Dimensions {'not_a_dim'} do not exist. Expected one or more of frozenset({'dim2', 'time', 'dim3', 'dim1'})"
|
Run tests:
xarray/tests/test_dataset.py#L2504
TestDataset.test_broadcast
AssertionError: Left and right Dataset objects are not identical
Differing data variables:
L baz (x, y) int64 16B 2 3
R baz (y, x) int64 16B 2 3
L foo (x, y) int64 16B 0 0
R foo (y, x) int64 16B 0 0
L bar (x, y) int64 16B 1 1
R bar (y, x) int64 16B 1 1
|
Run tests:
xarray/tests/test_dataset.py#L2526
TestDataset.test_broadcast_nocopy
AssertionError: Left and right Dataset objects are not identical
Differing data variables:
L foo (x, y) int64 16B 1 1
R foo (y, x) int64 16B 1 1
|
Run tests:
xarray/tests/test_dataset.py#L3695
TestDataset.test_stack
AssertionError: Left and right Dataset objects are not identical
Differing coordinates:
L * z (z) object 32B MultiIndex
R * z (z) object 32B MultiIndex
L * x (z) int64 32B 0 0 1 1
R * x (z) int64 32B 0 1 0 1
L * y (z) object 32B 'a' 'b' 'a' 'b'
R * y (z) <U1 16B 'a' 'a' 'b' 'b'
Differing data variables:
L b (z) int64 32B 0 1 2 3
R b (z) int64 32B 0 2 1 3
|
Run tests:
xarray/tests/test_dataset.py#L4691
TestDataset.test_to_and_from_dataframe
assert False
+ where False = <bound method NDFrame.equals of w cat\nx y \n0 a -2.552990 a\n b 0.653619 a\n c 0.864436 c\n1 a -0.742165 a\n b 2.269755 a\n c -1.454366 c>( w cat\ny x \na 0 -2.552990 a\n 1 -0.742165 a\nb 0 0.653619 a\n 1 2.269755 a\nc 0 0.864436 c\n 1 -1.454366 c)
+ where <bound method NDFrame.equals of w cat\nx y \n0 a -2.552990 a\n b 0.653619 a\n c 0.864436 c\n1 a -0.742165 a\n b 2.269755 a\n c -1.454366 c> = w cat\nx y \n0 a -2.552990 a\n b 0.653619 a\n c 0.864436 c\n1 a -0.742165 a\n b 2.269755 a\n c -1.454366 c.equals
|
Run tests:
xarray/tests/test_dataset.py#L5437
TestDataset.test_reduce
AssertionError: assert ['dim3', 'dim1', 'time'] == ['dim3', 'time', 'dim1']
At index 1 diff: 'dim1' != 'time'
Full diff:
[
'dim3',
+ 'dim1',
'time',
- 'dim1',
]
|
Run tests:
xarray/tests/test_dataset.py#L5507
TestDataset.test_reduce_cumsum_test_dims[cumsum-dim1-expected0]
AssertionError: assert ['dim2', 'tim...dim3', 'dim1'] == ['dim2', 'dim...time', 'dim1']
At index 1 diff: 'time' != 'dim3'
Full diff:
[
'dim2',
+ 'time',
'dim3',
- 'time',
'dim1',
]
|
Loading