Skip to content
Merged
Changes from all commits
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
4 changes: 2 additions & 2 deletions pygmt/src/meca.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def convention_params(convention):
],
"mt": ["mrr", "mtt", "mff", "mrt", "mrf", "mtf", "exponent"],
"partial": ["strike1", "dip1", "strike2", "fault_type", "magnitude"],
"pricipal_axis": [
"principal_axis": [
"t_value",
"t_azimuth",
"t_plunge",
Expand Down Expand Up @@ -401,7 +401,7 @@ def meca( # noqa: PLR0912, PLR0913, PLR0915
# Convert spec to pandas.DataFrame unless it's a file
if isinstance(spec, (dict, pd.DataFrame)): # spec is a dict or pd.DataFrame
# determine convention from dict keys or pd.DataFrame column names
for conv in ["aki", "gcmt", "mt", "partial", "pricipal_axis"]:
for conv in ["aki", "gcmt", "mt", "partial", "principal_axis"]:
if set(convention_params(conv)).issubset(set(spec.keys())):
convention = conv
break
Expand Down