Skip to content

Commit 84a970a

Browse files
committed
fix: allow json serialisation + pass fault parameters correctly
1 parent 82fe77f commit 84a970a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

loopstructural/main/loopstructuralwrapper.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,14 +106,15 @@ def __init__(
106106
faults.append(
107107
{
108108
'fault_name': fault_name,
109-
'dip': fault['dip'],
109+
'fault_dip': fault['fault_dip'],
110110
'displacement': fault['displacement'],
111111
'major_axis': fault['major_axis'],
112112
'intermediate_axis': fault['intermediate_axis'],
113113
'minor_axis': fault['minor_axis'],
114-
'centreEasting': fault['centre'].x(),
115-
'centreNorthing': fault['centre'].y(),
116-
'centreElevation': 0 # if fault['centre']fault['centre'].z(),
114+
'centreEasting': fault['fault_centre']['x'],
115+
'centreNorthing': fault['fault_centre']['y'],
116+
'centreElevation': 0, # if fault['centre']fault['centre'].z(),
117+
'fault_pitch': fault['fault_pitch'],
117118
# 'active': fault['active'],
118119
# 'azimuth': fault['azimuth'],
119120
# 'crs': fault['crs'],
@@ -126,7 +127,6 @@ def __init__(
126127
fault_properties['fault_name'] = fault_properties['fault_name'].astype(str)
127128
fault_properties = fault_properties.set_index('fault_name')
128129
fault_data['fault_name'] = fault_data['fault_name'].astype(str)
129-
print(stratigraphic_order)
130130
super().__init__(
131131
contacts=contact_locations,
132132
stratigraphic_order=stratigraphic_order,

0 commit comments

Comments
 (0)