Complete deprecation of Dataset.dims returning dict #12328
Annotations
10 errors
Run tests:
xarray/tests/test_dask.py#L367
TestDataArrayAndDataset.test_chunk
AssertionError: assert Frozen({'x': ...': (2, 2, 2)}) == {'x': (2, 2, 2), 'y': (2, 2)}
Full diff:
+ Frozen({'x': (2, 2), 'y': (2, 2, 2)})
- {
- 'x': (
- 2,
- 2,
- 2,
- ),
- 'y': (
- 2,
- 2,
- ),
- }
|
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 * y (flat) int64 32B 0 0 1 1
R * y (flat) int64 32B 0 1 0 1
L * x (flat) int64 32B 0 1 0 1
R * x (flat) int64 32B 0 0 1 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...B -0.6339 -0.7524 -0.3877 ... 0.6137 -0.669\n var3 (dim3, dim1) float64 640B -0.7087 0.6947 ... -0.002408 -0.9913.dims
+ and <class 'xarray.core.utils.Frozen'> = utils.Frozen
|
Run tests:
xarray/tests/test_dataset.py#L744
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#L1246
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 bar (x, y) int64 16B 1 1
R bar (y, x) int64 16B 1 1
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
|
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 * y (z) object 32B 'a' 'b' 'a' 'b'
R * y (z) <U1 16B 'a' 'a' 'b' 'b'
L * x (z) int64 32B 0 0 1 1
R * x (z) int64 32B 0 1 0 1
L * z (z) object 32B MultiIndex
R * z (z) object 32B MultiIndex
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 ['time', 'dim3', 'dim1'] == ['dim3', 'time', 'dim1']
At index 0 diff: 'time' != 'dim3'
Full diff:
[
+ 'time',
'dim3',
- 'time',
'dim1',
]
|
Loading