@@ -92,7 +92,10 @@ def process_map2loop(m2l_directory, flags={}):
9292 contact_orientations ['gy' ] = np .nan
9393 contact_orientations ['gz' ] = np .nan
9494 contact_orientations [['gx' , 'gy' , 'gz' ]] = strike_dip_vector (contact_orientations ['strike' ],
95- contact_orientations ['dip' ])* max_thickness
95+ contact_orientations ['dip' ])* max_thickness
96+ if np .sum (contact_orientations ['polarity' ]== 0 ) > 0 and np .sum (contact_orientations ['polarity' ]== - 1 )== 0 :
97+ # contact_orientations['polarity']+=1
98+ contact_orientations .loc [contact_orientations ['polarity' ]== 0 ]= - 1
9699 if not gradient :
97100 from LoopStructural .utils .helper import strike_dip_vector
98101 contact_orientations ['strike' ] = contact_orientations ['azimuth' ] - 90
@@ -202,7 +205,9 @@ def process_map2loop(m2l_directory, flags={}):
202205 fault_centers [3 ] = np .mean (fault_orientations .loc [fault_orientations ['formation' ]== f ,['DipDirection' ]])
203206 fault_centers [4 ] = fault_dimensions .loc [fault_dimensions ['Fault' ]== f ,'InfluenceDistance' ]
204207 fault_centers [5 ] = fault_dimensions .loc [fault_dimensions ['Fault' ]== f ,'HorizontalRadius' ]
205- stratigraphic_column ['faults' ][f ] = {'InfluenceDistance' :fault_dimensions .loc [fault_dimensions ['Fault' ]== f ,'InfluenceDistance' ].to_numpy (),
208+ stratigraphic_column ['faults' ][f ] = {'FaultCenter' :fault_centers [:3 ],
209+ 'FaultDipDirection' :fault_centers [3 ],
210+ 'InfluenceDistance' :fault_dimensions .loc [fault_dimensions ['Fault' ]== f ,'InfluenceDistance' ].to_numpy (),
206211 'HorizontalRadius' :fault_dimensions .loc [fault_dimensions ['Fault' ]== f ,'HorizontalRadius' ].to_numpy (),
207212 'VerticalRadius' :fault_dimensions .loc [fault_dimensions ['Fault' ]== f ,'VerticalRadius' ].to_numpy ()}
208213 if 'colour' in fault_dimensions .columns :
0 commit comments