15
15
from pygmt .exceptions import GMTInvalidInput
16
16
17
17
18
- def test_accessor_gridline_cartesian ():
18
+ def test_xarray_accessor_gridline_cartesian ():
19
19
"""
20
20
Check that the accessor returns the correct registration and gtype values for a
21
21
Cartesian, gridline-registered grid.
@@ -26,7 +26,7 @@ def test_accessor_gridline_cartesian():
26
26
assert grid .gmt .gtype == GridType .CARTESIAN
27
27
28
28
29
- def test_accessor_pixel_geographic ():
29
+ def test_xarray_accessor_pixel_geographic ():
30
30
"""
31
31
Check that the accessor returns the correct registration and gtype values for a
32
32
geographic, pixel-registered grid.
@@ -37,7 +37,7 @@ def test_accessor_pixel_geographic():
37
37
assert grid .gmt .gtype == GridType .GEOGRAPHIC
38
38
39
39
40
- def test_accessor_set_registration ():
40
+ def test_xarray_accessor_set_registration ():
41
41
"""
42
42
Check that we can set the registration of a grid.
43
43
"""
@@ -63,7 +63,7 @@ def test_accessor_set_registration():
63
63
64
64
65
65
@pytest .mark .benchmark
66
- def test_accessor_set_gtype ():
66
+ def test_xarray_accessor_set_gtype ():
67
67
"""
68
68
Check that we can set the gtype of a grid.
69
69
"""
@@ -87,7 +87,7 @@ def test_accessor_set_gtype():
87
87
assert grid .gmt .gtype == GridType .CARTESIAN == 0
88
88
89
89
90
- def test_accessor_set_invalid_registration_and_gtype ():
90
+ def test_xarray_accessor_set_invalid_registration_and_gtype ():
91
91
"""
92
92
Check that setting invalid values on registration and gtype do not work.
93
93
"""
@@ -108,7 +108,7 @@ def test_accessor_set_invalid_registration_and_gtype():
108
108
condition = sys .platform == "win32" and Version (__gmt_version__ ) < Version ("6.5.0" ),
109
109
reason = "Upstream bug fixed in https://github.com/GenericMappingTools/gmt/pull/7573" ,
110
110
)
111
- def test_accessor_sliced_datacube ():
111
+ def test_xarray_accessor_sliced_datacube ():
112
112
"""
113
113
Check that a 2-D grid which is sliced from an n-dimensional datacube works with
114
114
accessor methods.
@@ -130,7 +130,7 @@ def test_accessor_sliced_datacube():
130
130
Path (fname ).unlink ()
131
131
132
132
133
- def test_accessor_grid_source_file_not_exist ():
133
+ def test_xarray_accessor_grid_source_file_not_exist ():
134
134
"""
135
135
Check that the accessor fallbacks to the default registration and gtype when the
136
136
grid source file (i.e., grid.encoding["source"]) doesn't exist.
0 commit comments