Skip to content

Commit

Permalink
fix: 🐛 faults where feature name given not fault_name were crashing
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlangrose committed May 4, 2022
1 parent 92da55f commit dae9e92
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion LoopStructural/modelling/input/process_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,10 @@ def fault_orientations(self, fault_orientations):
fault_orientations[["gx", "gy", "gz"]] = strike_dip_vector(
fault_orientations["strike"], fault_orientations["dip"]
)
fault_orientations["feature_name"] = fault_orientations["fault_name"]
if "feature_name" not in fault_orientations.columns and "fault_name" in fault_orientations.columns:
fault_orientations["feature_name"] = fault_orientations["fault_name"]
if "feature_name" not in fault_orientations.columns:
raise ValueError("Fault orientation data must contain feature_name or fault_name")
self._fault_orientations = fault_orientations[
["X", "Y", "Z", "gx", "gy", "gz", "coord", "feature_name"]
]
Expand Down

0 comments on commit dae9e92

Please sign in to comment.