Skip to content

Commit

Permalink
fix: Use fault names if present before labelling fault Fault_XXX
Browse files Browse the repository at this point in the history
  • Loading branch information
RoyThomsonMonash committed May 31, 2023
1 parent ed61243 commit 7bf34fc
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions LoopStructural/modelling/input/project_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ def __init__(self, projectfile, use_thickness=None):
contacts.rename(columns=column_map, inplace=True)
fault_locations.rename(columns=column_map, inplace=True)
fault_orientations.rename(columns=column_map, inplace=True)
fault_locations["fault_name"] = [
f"Fault_{eventid}" for eventid in fault_locations["eventId"]
]
fault_orientations["fault_name"] = [
f"Fault_{eventid}" for eventid in fault_orientations["eventId"]
]
# fault_locations["fault_name"] = [
# f"Fault_{eventid}" for eventid in fault_locations["eventId"]
# ]
# fault_orientations["fault_name"] = [
# f"Fault_{eventid}" for eventid in fault_orientations["eventId"]
# ]
thicknesses = dict(
zip(
projectfile["stratigraphicLog"].name,
Expand All @@ -52,6 +52,10 @@ def __init__(self, projectfile, use_thickness=None):
},
inplace=True,
)
fault_locations = fault_properties.reset_index()[["name", "eventId"]].merge(fault_locations, on="eventId")
fault_locations["fault_name"] = fault_locations["name"]
fault_orientations = fault_properties.reset_index()[["name", "eventId"]].merge(fault_orientations, on="eventId")
fault_orientations["fault_name"] = fault_orientations["name"]
colours = dict(
zip(
self.projectfile.stratigraphicLog.name,
Expand Down

0 comments on commit 7bf34fc

Please sign in to comment.