We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ed7f451 commit 259771aCopy full SHA for 259771a
pygmt/accessors.py
@@ -160,8 +160,6 @@ def registration(self):
160
161
@registration.setter
162
def registration(self, value):
163
- if value in {"gridline", "pixel"}: # Support for string-type values
164
- value = GridReg[value.upper()]
165
# Can be simplified to `if value not in GridReg` after requiring Python 3.12+.
166
if value not in GridReg.__members__.values():
167
msg = (
@@ -181,8 +179,6 @@ def gtype(self):
181
179
182
180
@gtype.setter
183
def gtype(self, value):
184
- if value in {"cartesian", "geographic"}: # Support for string-type values
185
- value = GridType[value.upper()]
186
# Can be simplified to `if value not in GridType` after requiring Python 3.12+.
187
if value not in GridType.__members__.values():
188
0 commit comments