From dc1a753601be81de338149466a951c636b0a7304 Mon Sep 17 00:00:00 2001 From: Dongdong Tian Date: Mon, 3 May 2021 15:54:03 -0400 Subject: [PATCH 1/2] Update Figure.meca 'offset' alias to match GMT 6.2.0rc1 syntax --- pygmt/src/meca.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pygmt/src/meca.py b/pygmt/src/meca.py index e73f95b35ea..97cf365bf5e 100644 --- a/pygmt/src/meca.py +++ b/pygmt/src/meca.py @@ -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", @@ -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 @@ -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 @@ -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 From fca2520e443f6c0b4aeeca5719a725617188e8f6 Mon Sep 17 00:00:00 2001 From: Dongdong Tian Date: Tue, 4 May 2021 09:22:05 -0400 Subject: [PATCH 2/2] Sort aliases --- pygmt/src/meca.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pygmt/src/meca.py b/pygmt/src/meca.py index 97cf365bf5e..cde18474165 100644 --- a/pygmt/src/meca.py +++ b/pygmt/src/meca.py @@ -98,8 +98,8 @@ def data_format_code(convention, component="full"): @use_alias( R="region", J="projection", - B="frame", A="offset", + B="frame", N="no_clip", V="verbose", X="xshift",