Skip to content

Commit 5639f24

Browse files
authored
Figure.meca: Fix typo pricipal_axis -> principal_axis (#2940)
Fixes error like `GMTInvalidInput: Invalid convention 'pricipal_axis'` from being raised.
1 parent da36673 commit 5639f24

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pygmt/src/meca.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def convention_params(convention):
168168
],
169169
"mt": ["mrr", "mtt", "mff", "mrt", "mrf", "mtf", "exponent"],
170170
"partial": ["strike1", "dip1", "strike2", "fault_type", "magnitude"],
171-
"pricipal_axis": [
171+
"principal_axis": [
172172
"t_value",
173173
"t_azimuth",
174174
"t_plunge",
@@ -401,7 +401,7 @@ def meca( # noqa: PLR0912, PLR0913, PLR0915
401401
# Convert spec to pandas.DataFrame unless it's a file
402402
if isinstance(spec, (dict, pd.DataFrame)): # spec is a dict or pd.DataFrame
403403
# determine convention from dict keys or pd.DataFrame column names
404-
for conv in ["aki", "gcmt", "mt", "partial", "pricipal_axis"]:
404+
for conv in ["aki", "gcmt", "mt", "partial", "principal_axis"]:
405405
if set(convention_params(conv)).issubset(set(spec.keys())):
406406
convention = conv
407407
break

0 commit comments

Comments
 (0)