Add a simple nbytes
representation in DataArrays and Dataset repr
#11312
Annotations
11 errors and 1 warning
|
Run tests:
xarray/tests/test_dataarray.py#L106
TestDataArray.test_repr
AssertionError: assert '<xarray.Data...foo: bar' == '<xarray.Data...foo: bar'
Skipping 38 identical leading characters in diff, use -v to show
- 2, x: 3)> Size: 48B
+ 2, x: 3)>
array([[1, 2, 3],
[4, 5, 6]])
Coordinates:
- * x (x) int64 24B 0 1 2
? ----
+ * x (x) int64 0 1 2
- other int64 8B 0
? ---
+ other int64 0
Dimensions without coordinates: time
Attributes:
foo: bar
|
Run tests:
xarray/tests/test_dataarray.py#L118
TestDataArray.test_repr_multiindex
AssertionError: assert '<xarray.Data...int64 1 2 1 2' == '<xarray.Data...4 32B 1 2 1 2'
- <xarray.DataArray (x: 4)> Size: 32B
? ----------
+ <xarray.DataArray (x: 4)>
array([0, 1, 2, 3])
Coordinates:
- * x (x) object 32B MultiIndex
? ----
+ * x (x) object MultiIndex
- * level_1 (x) object 32B 'a' 'a' 'b' 'b'
? ----
+ * level_1 (x) object 'a' 'a' 'b' 'b'
- * level_2 (x) int64 32B 1 2 1 2
? ^ - ----
+ * level_2 (x) int64 1 2 1 2
? ^^
|
Run tests:
xarray/tests/test_dataarray.py#L136
TestDataArray.test_repr_multiindex_long
AssertionError: assert '<xarray.Data...2 3 4 5 6 7 8' == '<xarray.Data...2 3 4 5 6 7 8'
- <xarray.DataArray (x: 32)> Size: 256B
? -----------
+ <xarray.DataArray (x: 32)>
array([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16,
17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31])
Coordinates:
- * x (x) object 256B MultiIndex
? -----
+ * x (x) object MultiIndex
- * level_1 (x) object 256B 'a' 'a' 'a' 'a' 'a' 'a' ... 'd' 'd' 'd' 'd' 'd' 'd'
? -----
+ * level_1 (x) object 'a' 'a' 'a' 'a' 'a' 'a' 'a' ... 'd' 'd' 'd' 'd' 'd' 'd'
? ++++
- * level_2 (x) int64 256B 1 2 3 4 5 6 7 8 1 2 3 4 ... 5 6 7 8 1 2 3 4 5 6 7 8
? ^ ------------
+ * level_2 (x) int64 1 2 3 4 5 6 7 8 1 2 3 4 5 6 ... 4 5 6 7 8 1 2 3 4 5 6 7 8
? ++ +++++ + ^^^^ ++
|
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_formatting.py#L642
test_repr_file_collapsed
AssertionError: assert '<xarray.Data...dinates: test' == '<xarray.Data...dinates: test'
- <xarray.DataArray (test: 300)>
+ <xarray.DataArray (test: 300)> Size: 2kB
? ++++++++++
[300 values with dtype=int64]
Dimensions without coordinates: test
|
Run tests:
xarray/tests/test_formatting.py#L718
test__mapping_repr[50-40-30]
AssertionError: assert '<xarray.Data...ributes: (30)' == '<xarray.Data...ributes: (30)'
- <xarray.Dataset>
+ <xarray.Dataset> Size: 1kB
? ++++++++++
Dimensions: (coord0: 2, coord1: 2, coord2: 2, coord3: 2, coord4: 2,
coord5: 2, coord6: 2, coord7: 2, coord8: 2, coord9: 2,
coord10: 2, coord11: 2, coord12: 2, coord13: 2, coord14: 2,
coord15: 2, coord16: 2, coord17: 2, coord18: 2, coord19: 2,
coord20: 2, coord21: 2, coord22: 2, coord23: 2, coord24: 2,
coord25: 2, coord26: 2, coord27: 2, coord28: 2, coord29: 2,
coord30: 2, coord31: 2, coord32: 2, coord33: 2, coord34: 2,
coord35: 2, coord36: 2, coord37: 2, coord38: 2, coord39: 2)
Coordinates: (40)
Data variables: (40)
Attributes: (30)
|
Run tests:
xarray/tests/test_formatting.py#L718
test__mapping_repr[35-40-30]
AssertionError: assert '<xarray.Data...ributes: (30)' == '<xarray.Data...ributes: (30)'
- <xarray.Dataset>
+ <xarray.Dataset> Size: 1kB
? ++++++++++
Dimensions: (coord0: 2, coord1: 2, coord2: 2, coord3: 2, coord4: 2,
coord5: 2, coord6: 2, coord7: 2, coord8: 2, coord9: 2,
coord10: 2, coord11: 2, coord12: 2, coord13: 2, coord14: 2,
coord15: 2, coord16: 2, coord17: 2, coord18: 2, coord19: 2,
coord20: 2, coord21: 2, coord22: 2, coord23: 2, coord24: 2,
coord25: 2, coord26: 2, coord27: 2, coord28: 2, coord29: 2,
coord30: 2, coord31: 2, coord32: 2, coord33: 2, coord34: 2,
coord35: 2, coord36: 2, coord37: 2, coord38: 2, coord39: 2)
Coordinates: (40)
Data variables: (40)
Attributes: (30)
|
Run tests:
xarray/tests/test_formatting.py#L718
test__mapping_repr[11-40-30]
AssertionError: assert '<xarray.Data...ributes: (30)' == '<xarray.Data...ributes: (30)'
- <xarray.Dataset>
+ <xarray.Dataset> Size: 1kB
? ++++++++++
Dimensions: (coord0: 2, coord1: 2, coord2: 2, coord3: 2, coord4: 2,
coord5: 2, coord6: 2, coord7: 2, coord8: 2, coord9: 2,
coord10: 2, coord11: 2, coord12: 2, coord13: 2, coord14: 2,
coord15: 2, coord16: 2, coord17: 2, coord18: 2, coord19: 2,
coord20: 2, coord21: 2, coord22: 2, coord23: 2, coord24: 2,
coord25: 2, coord26: 2, coord27: 2, coord28: 2, coord29: 2,
coord30: 2, coord31: 2, coord32: 2, coord33: 2, coord34: 2,
coord35: 2, coord36: 2, coord37: 2, coord38: 2, coord39: 2)
Coordinates: (40)
Data variables: (40)
Attributes: (30)
|
Upload test results
No files were found with the provided path: pytest.xml. No artifacts will be uploaded.
|
The logs for this run have expired and are no longer available.
Loading