Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Figure.meca 'offset' alias to match GMT 6.2.0rc1 syntax #1255

Merged
merged 3 commits into from
May 4, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions pygmt/src/meca.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def data_format_code(convention, component="full"):
R="region",
J="projection",
B="frame",
C="offset",
A="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