11from ....modelling .features .builders import GeologicalFeatureBuilder
22from ....modelling .features .fold .fold_function import FoldRotationType , get_fold_rotation_profile
3+ from ....modelling .features import FeatureType
34import numpy as np
45
56from ....utils import getLogger , InterpolatorError
@@ -48,11 +49,13 @@ def __init__(
4849 region = region ,
4950 ** kwargs ,
5051 )
52+ self ._feature .type = FeatureType .FOLDED
5153 # link the interpolator to the fold object
5254 self .interpolator .fold = fold
5355 self .fold = fold
5456 self .fold_weights = fold_weights
55- self .kwargs = kwargs
57+ self .update_build_arguments (kwargs )
58+ # self.kwargs = kwargs
5659 self .svario = svario
5760 self .axis_profile_type = axis_profile_type
5861 self .limb_profile_type = limb_profile_type
@@ -87,7 +90,7 @@ def fold_limb_rotation(self):
8790
8891 def set_fold_axis (self ):
8992 """calculates the fold axis/ fold axis rotation and adds this to the fold"""
90- kwargs = self .kwargs
93+ kwargs = self .build_arguments
9194 fold_axis = kwargs .get ("fold_axis" , None )
9295 if fold_axis is not None :
9396 fold_axis = np .array (fold_axis )
@@ -112,7 +115,7 @@ def set_fold_axis(self):
112115
113116 def set_fold_limb_rotation (self ):
114117 """Calculates the limb rotation of the fold and adds it to the fold object"""
115- kwargs = self .kwargs
118+ kwargs = self .build_arguments
116119 # need to calculate the fold axis before the fold limb rotation angle
117120 if self .fold .fold_axis is None :
118121 self .set_fold_axis ()
0 commit comments