Skip to content

Commit 9ba7e69

Browse files
committed
fix: cast fault name as string to avoid no points in fault error
1 parent 40552cb commit 9ba7e69

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

loopstructural/main/loopstructuralwrapper.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,11 @@ def __init__(
120120
)
121121
fault_properties = None
122122
if len(faults) > 0:
123-
123+
124124
fault_properties = pd.DataFrame(faults)
125+
fault_properties['fault_name'] = fault_properties['fault_name'].astype(str)
125126
fault_properties = fault_properties.set_index('fault_name')
127+
fault_data['fault_name'] = fault_data['fault_name'].astype(str)
126128
super().__init__(
127129
contacts=contact_locations,
128130
stratigraphic_order=stratigraphic_order,

0 commit comments

Comments
 (0)