Skip to content

Commit

Permalink
bug: Fix fault name issue which causes multiple name keywords in Faul…
Browse files Browse the repository at this point in the history
…tBuilder
  • Loading branch information
RoyThomsonMonash committed Nov 26, 2023
1 parent 083a195 commit 1581d5d
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions LoopStructural/modelling/input/project_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,6 @@ 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"]
# ]
thicknesses = dict(
zip(
projectfile["stratigraphicLog"].name,
Expand All @@ -48,14 +42,13 @@ def __init__(self, projectfile, use_thickness=None):
"influenceDistance": "minor_axis",
"verticalRadius": "intermediate_axis",
"horizontalRadius": "major_axis",
# "name": "fault_name",
"name": "fault_name",
},
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"]
fault_locations = fault_properties.reset_index()[["fault_name", "eventId"]].merge(fault_locations, on="eventId")
fault_orientations = fault_properties.reset_index()[["fault_name", "eventId"]].merge(fault_orientations, on="eventId")
fault_properties.set_index("fault_name",inplace=True)
colours = dict(
zip(
self.projectfile.stratigraphicLog.name,
Expand Down

0 comments on commit 1581d5d

Please sign in to comment.