File tree 1 file changed +3
-3
lines changed 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -153,8 +153,8 @@ def registration(self, value):
153
153
# TODO(Python>=3.12): Simplify to `if value not in GridRegistration`.
154
154
if value not in GridRegistration .__members__ .values ():
155
155
msg = (
156
- f"Invalid grid registration: '{ value } '. "
157
- "Should be either GridRegistration.GRIDLINE (0) or GridRegistration.PIXEL (1)."
156
+ f"Invalid grid registration: '{ value } '. Should be either "
157
+ "GridRegistration.GRIDLINE (0) or GridRegistration.PIXEL (1)."
158
158
)
159
159
raise GMTInvalidInput (msg )
160
160
self ._registration = GridRegistration (value )
@@ -172,7 +172,7 @@ def gtype(self, value):
172
172
if value not in GridType .__members__ .values ():
173
173
msg = (
174
174
f"Invalid grid coordinate system type: '{ value } '. "
175
- "Should be either GridType.CARTESIAN or GridType.GEOGRAPHIC."
175
+ "Should be either GridType.CARTESIAN (0) or GridType.GEOGRAPHIC (1) ."
176
176
)
177
177
raise GMTInvalidInput (msg )
178
178
self ._gtype = GridType (value )
You can’t perform that action at this time.
0 commit comments