File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -369,6 +369,7 @@ def update_faults(self):
369369 qgsLayerToGeoDataFrame (self ._fault_traces ['layer' ]),
370370 fault_name_field = self ._fault_traces ['fault_name_field' ],
371371 fault_dip_field = self ._fault_traces ['fault_dip_field' ],
372+ fault_pitch_field = self ._fault_traces .get ('fault_pitch_field' , None ),
372373 fault_displacement_field = self ._fault_traces ['fault_displacement_field' ],
373374 use_z_coordinate = self ._fault_traces ['use_z_coordinate' ],
374375 )
Original file line number Diff line number Diff line change @@ -107,6 +107,7 @@ def update_fault_points(
107107 fault_name_field = None ,
108108 fault_dip_field = None ,
109109 fault_displacement_field = None ,
110+ fault_pitch_field = None ,
110111 sampler = AllSampler (),
111112 use_z_coordinate = False ,
112113 ):
@@ -134,6 +135,9 @@ def update_fault_points(
134135 ):
135136 fault_points ['displacement' ] = fault_points [fault_displacement_field ]
136137 cols .append ('displacement' )
138+ if fault_pitch_field is not None and fault_pitch_field in fault_points .columns :
139+ fault_points ['pitch' ] = fault_points [fault_pitch_field ]
140+ cols .append ('pitch' )
137141 existing_faults = set (self .fault_topology .faults )
138142 for fault_name in fault_points ['fault_name' ].unique ():
139143 self .faults [fault_name ]['data' ] = fault_points .loc [
You can’t perform that action at this time.
0 commit comments