Skip to content

Commit 38bc807

Browse files
committed
Remove commented codes
1 parent 5067a3a commit 38bc807

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

pygmt/alias.py

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -261,25 +261,4 @@ def kwdict(self):
261261
break
262262

263263
kwdict[option] += alias.value
264-
265-
# # Support short-form parameter names specified in kwargs.
266-
# # Short-form parameters can be either one-letter (e.g., '-B'), or two-letters
267-
# # (e.g., '-Td').
268-
# for option, value in self.options.items():
269-
# # Here, we assume that long-form parameters specified in kwargs are longer
270-
# # than two characters. Sometimes, we may use parameter like 'az', but it's
271-
# # not specified in kwargs. So, the assumption is still valid.
272-
# if len(option) > 2:
273-
# continue
274-
275-
# # Two cases for short-form parameters:
276-
# #
277-
# # If it has an alias and the long-form parameter is also specified, (e.g.,
278-
# # 'projection="X10c", J="X10c"'), then we silently ignore the short-form
279-
# # parameter.
280-
# #
281-
# # If it has an alias but the long-form parameter is not specified, or it
282-
# # doesn't has an alias, then we use the value of the short-form parameter.
283-
# if option not in self.options or option not in kwdict:
284-
# kwdict[option] = value
285264
return kwdict

0 commit comments

Comments
 (0)