Skip to content

Commit 259771a

Browse files
committed
Remove the support of string-type values
1 parent ed7f451 commit 259771a

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

pygmt/accessors.py

-4
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,6 @@ def registration(self):
160160

161161
@registration.setter
162162
def registration(self, value):
163-
if value in {"gridline", "pixel"}: # Support for string-type values
164-
value = GridReg[value.upper()]
165163
# Can be simplified to `if value not in GridReg` after requiring Python 3.12+.
166164
if value not in GridReg.__members__.values():
167165
msg = (
@@ -181,8 +179,6 @@ def gtype(self):
181179

182180
@gtype.setter
183181
def gtype(self, value):
184-
if value in {"cartesian", "geographic"}: # Support for string-type values
185-
value = GridType[value.upper()]
186182
# Can be simplified to `if value not in GridType` after requiring Python 3.12+.
187183
if value not in GridType.__members__.values():
188184
msg = (

0 commit comments

Comments
 (0)