Skip to content

Commit cf59045

Browse files
authored
GMT_IMAGE: Remove 'nan_value' from the doctest since it depends on GMT versions (#3384)
1 parent 559688c commit cf59045

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pygmt/datatypes/image.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class _GMT_IMAGE(ctp.Structure): # noqa: N801
1818
>>> from pygmt.clib import Session
1919
>>> with Session() as lib:
2020
... with lib.virtualfile_out(kind="image") as voutimg:
21-
... lib.call_module("read", ["@earth_day_01d", voutimg, "-Ti"])
21+
... lib.call_module("read", ["@earth_day_01d_p", voutimg, "-Ti"])
2222
... # Read the image from the virtual file
2323
... image = lib.read_virtualfile(vfname=voutimg, kind="image").contents
2424
... # The image header
@@ -34,7 +34,7 @@ class _GMT_IMAGE(ctp.Structure): # noqa: N801
3434
... print(header.nm, header.size, header.complex_mode)
3535
... print(header.type, header.n_bands, header.mx, header.my)
3636
... print(header.pad[:])
37-
... print(header.mem_layout, header.nan_value, header.xy_off)
37+
... print(header.mem_layout, header.xy_off)
3838
... # Image-specific attributes.
3939
... print(image.type, image.n_indexed_colors)
4040
... # The x and y coordinates
@@ -58,7 +58,7 @@ class _GMT_IMAGE(ctp.Structure): # noqa: N801
5858
64800 66976 0
5959
0 3 364 184
6060
[2, 2, 2, 2]
61-
b'BRPa' 0.0 0.5
61+
b'BRPa' 0.5
6262
1 0
6363
>>> x
6464
[-179.5, -178.5, ..., 178.5, 179.5]

0 commit comments

Comments
 (0)