Complete deprecation of Dataset.dims returning dict #12328
Annotations
10 errors
Run tests:
xarray\tests\test_combine.py#L167
TestTileIDsFromCoords.test_2d
AssertionError: Left and right Dataset objects are not equal
Differing coordinates:
L * y (y) int32 12B 10 20 30
R * y (y) int32 12B 40 50 60
L * x (x) int32 8B 2 3
R * x (x) int32 8B 0 1
|
Run tests:
xarray\tests\test_combine.py#L209
TestTileIDsFromCoords.test_2d_plus_bystander_dim
AssertionError: Left and right Dataset objects are not equal
Differing coordinates:
L * y (y) int32 12B 10 20 30
R * y (y) int32 12B 40 50 60
L * x (x) int32 8B 2 3
R * x (x) int32 8B 0 1
|
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_groupby.py#L68
test_groupby_dims_property
AttributeError: 'frozenset' object has no attribute 'keys'
|
Run tests:
xarray\tests\test_groupby.py#L119
test_reduce_numeric_only
AttributeError: 'frozenset' object has no attribute 'keys'
|
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.7697 -0.289 0.8342 ... -1.239 -0.856\n var3 (dim3, dim1) float64 640B 1.752 1.681 0.2777 ... 0.5357 -0.01115.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({'time', 'dim2', 'dim3', 'dim1'})"
|
Run tests:
xarray\tests\test_dataarray.py#L2499
TestDataArray.test_stack_unstack
AssertionError: Left and right DataArray objects are not identical
Differing values:
L
array([[0, 1],
[2, 3]])
R
array([[0, 2],
[1, 3]])
|
Run tests:
xarray\tests\test_dataset.py#L4893
TestDataset.test_convert_dataframe_with_many_types_and_multiindex
assert False
+ where False = <bound method NDFrame.equals of a b c d e f g h\ntwo one ....0 False b 2013-01-02 2013-01-02 00:00:00-05:00\n2 a c 3 5 6.0 True c 2013-01-03 2013-01-03 00:00:00-05:00>( a b c d e f g h\none two ...5.0 False b 2013-01-02 2013-01-02 00:00:00-05:00\n 2 c 3 5 6.0 True c 2013-01-03 2013-01-03 00:00:00-05:00)
+ where <bound method NDFrame.equals of a b c d e f g h\ntwo one ....0 False b 2013-01-02 2013-01-02 00:00:00-05:00\n2 a c 3 5 6.0 True c 2013-01-03 2013-01-03 00:00:00-05:00> = a b c d e f g h\ntwo one ...5.0 False b 2013-01-02 2013-01-02 00:00:00-05:00\n2 a c 3 5 6.0 True c 2013-01-03 2013-01-03 00:00:00-05:00.equals
|
Loading