Skip to content

Commit

Permalink
Update Figure.meca 'offset' alias to match GMT 6.2.0rc1 syntax (#1255)
Browse files Browse the repository at this point in the history
Change the "offset" alias from C to A, to match the GMT 6.2.0rc1 syntax.
  • Loading branch information
seisman authored May 4, 2021
1 parent b2176a0 commit 454c682
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions pygmt/src/meca.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ def data_format_code(convention, component="full"):
@use_alias(
R="region",
J="projection",
A="offset",
B="frame",
C="offset",
N="no_clip",
V="verbose",
X="xshift",
Expand Down Expand Up @@ -334,8 +334,8 @@ def update_pointers(data_pointers):
if arg is None:
spec.append(0)
else:
if "C" not in kwargs:
kwargs["C"] = True
if "A" not in kwargs:
kwargs["A"] = True
spec.append(arg)

# or assemble the 2D array for the case of lists as values
Expand Down Expand Up @@ -389,8 +389,8 @@ def update_pointers(data_pointers):
if arg is None:
row.append(0)
else:
if "C" not in kwargs:
kwargs["C"] = True
if "A" not in kwargs:
kwargs["A"] = True
row.append(arg[index])
spec_array.append(row)
spec = spec_array
Expand Down Expand Up @@ -435,8 +435,8 @@ def update_pointers(data_pointers):
if arg is None:
row.append(0)
else:
if "C" not in kwargs:
kwargs["C"] = True
if "A" not in kwargs:
kwargs["A"] = True
row.append(arg[index])
spec_array.append(row)
spec = spec_array
Expand Down

0 comments on commit 454c682

Please sign in to comment.