Add a simple nbytes
representation in DataArrays and Dataset repr
#11315
Annotations
6 errors
Run tests:
xarray/tests/test_dataarray.py#L1452
TestDataArray.test_coords
AssertionError: assert 'Coordinates:...) int64 0 1 2' == 'Coordinates:...t64 24B 0 1 2'
Coordinates:
- * x (x) int64 16B -1 -2
? ----
+ * x (x) int64 -1 -2
- * y (y) int64 24B 0 1 2
? --------
+ * y (y) int64 0 1 2
? ++++
|
Run tests:
xarray/tests/test_formatting.py#L338
TestFormatting.test_diff_array_repr
AssertionError: assert 'Left and rig...ription: desc' == 'Left and rig...ription: desc'
Skipping 219 identical leading characters in diff, use -v to show
- (x) <U1 8B 'a' 'b'
? -- -
+ (x) <U1 8B 'a' 'b'
- R * x (x) <U1 8B 'a' 'c'
? -- -
+ R * x (x) <U1 8B 'a' 'c'
Coordinates only on the left object:
- * y (y) int64 24B 1 2 3
? - -
+ * y (y) int64 24B 1 2 3
Coordinates only on the right object:
- label (x) int64 16B 1 2
? - -
+ label (x) int64 16B 1 2
Differing attributes:
L units: m
R units: kg
Attributes only on the left object:
description: desc
|
Run tests:
xarray/tests/test_formatting.py#L464
TestFormatting.test_diff_dataset_repr
AssertionError: assert 'Left and rig...ription: desc' == 'Left and rig...ription: desc'
Skipping 132 identical leading characters in diff, use -v to show
- (x) <U1 8B 'a' 'b'
? -- -
+ (x) <U1 8B 'a' 'b'
Differing variable attributes:
foo: bar
- R * x (x) <U1 8B 'a' 'c'
? -- -
+ R * x (x) <U1 8B 'a' 'c'
Differing variable attributes:
source: 0
foo: baz
Coordinates only on the left object:
- * y (y) int64 24B 1 2 3
? - -
+ * y (y) int64 24B 1 2 3
Coordinates only on the right object:
- label (x) int64 16B 1 2
? - -
+ label (x) int64 16B 1 2
Differing data variables:
- L var1 (x, y) int64 48B 1 2 3 4 5 6
? - -
+ L var1 (x, y) int64 48B 1 2 3 4 5 6
- R var1 (x) int64 16B 1 2
? - -
+ R var1 (x) int64 16B 1 2
Data variables only on the left object:
- var2 (x) int64 16B 3 4
? - -
+ var2 (x) int64 16B 3 4
Differing attributes:
L title: mytitle
R title: newtitle
Attributes only on the left object:
description: desc
|
Run tests:
xarray/tests/test_dataset.py#L892
TestDataset.test_coords_properties
AssertionError: assert 'Coordinates:... int64 -10' == 'Coordinates:... int64 8B -10'
Coordinates:
- * x (x) int64 16B -1 -2
? ----
+ * x (x) int64 -1 -2
- * y (y) int64 24B 0 1 2
? ----
+ * y (y) int64 0 1 2
- a (x) int64 16B 4 5
? ----
+ a (x) int64 4 5
- b int64 8B -10
? ---
+ b int64 -10
|
Run tests:
xarray/tests/test_dataset.py#L1083
TestDataset.test_data_vars_properties
AssertionError: assert 'Data variabl... float64 2.0' == 'Data variabl...loat64 8B 2.0'
Data variables:
- foo (x) float64 8B 1.0
? ---
+ foo (x) float64 1.0
- bar float64 8B 2.0
? ---
+ bar float64 2.0
|
Run tests
Process completed with exit code 1.
|
The logs for this run have expired and are no longer available.
Loading