Skip to content

Commit 70c70c3

Browse files
committed
Fix two tests due to the removal of conftest.py
1 parent d1d79d2 commit 70c70c3

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

pygmt/datatypes/image.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class _GMT_IMAGE(ctp.Structure): # noqa: N801
7070
>>> data.shape
7171
(180, 360, 3)
7272
>>> data.min(), data.max()
73-
(10, 255)
73+
(np.uint8(10), np.uint8(255))
7474
"""
7575

7676
_fields_: ClassVar = [
@@ -139,13 +139,14 @@ def to_xarray(self) -> xr.DataArray:
139139
...,
140140
[177, 179, 179, ..., 178, 177, 177],
141141
[185, 187, 187, ..., 187, 186, 185],
142-
[189, 191, 191, ..., 191, 191, 189]]], dtype=uint8)
142+
[189, 191, 191, ..., 191, 191, 189]]],
143+
shape=(3, 180, 360), dtype=uint8)
143144
Coordinates:
144145
* y (y) float64... 89.5 88.5 87.5 86.5 ... -86.5 -87.5 -88.5 -89.5
145146
* x (x) float64... -179.5 -178.5 -177.5 -176.5 ... 177.5 178.5 179.5
146147
* band (band) uint8... 1 2 3
147148
Attributes:
148-
long_name: z
149+
long_name: z
149150
150151
>>> da.coords["x"] # doctest: +NORMALIZE_WHITESPACE, +ELLIPSIS
151152
<xarray.DataArray 'x' (x: 360)>...

0 commit comments

Comments
 (0)