File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11from collections import defaultdict
22from collections .abc import Callable
3- from re import A
4- from tracemalloc import start
3+
54from typing import Callable
65import geopandas as gpd
76import pandas as pd
@@ -221,7 +220,14 @@ def update_fault_features(self):
221220 # need to have a way of specifying the displacement from the trace
222221 # or maybe the model should calculate it
223222 self .model .create_and_add_fault (fault_name , displacement = 10 , fault_data = data )
223+ for f in self .fault_topology .faults :
224+ for f2 in self .fault_topology .faults :
225+ if f != f2 :
226+ relationship = self .fault_topology .get_fault_relationship (f , f2 )
227+ if relationship == FaultRelationshipType .ABUTTING :
228+ self .model [f ].add_abutting_fault (self .model [f2 ])
224229
230+
225231 @property
226232 def valid (self ):
227233 valid = True
You can’t perform that action at this time.
0 commit comments