def __init__( self, name, interpolator, builder=None, regions=[], faults=[], model=None, ): """Default constructor for geological feature Parameters ---------- name: string interpolator : GeologicalInterpolator builder : GeologicalFeatureBuilder data : region : type : faults : list """ BaseFeature.__init__(self, name, model, faults, regions, builder) self.name = name self.interpolator = interpolator self.builder = builder self.type = FeatureType.INTERPOLATED
def __init__(self, name, vector, origin, regions=[], faults=[], model=None, builder=None): BaseFeature.__init__(self, name, model, faults, regions, builder) self.vector = np.array(vector, dtype=float) self.origin = np.array(origin, dtype=float) self.type = FeatureType.ANALYTICAL
def __init__(self, name, features, fold=None): """ Structural frame is a curvilinear coordinate system defined by structural observations associated with a fault or fold. Parameters ---------- name - name of the structural frame features - list of features to build the frame with """ BaseFeature.__init__(self, name, None, [], [], None) self.features = features self.fold = fold self.type = FeatureType.STRUCTURALFRAME
def __init__( self, function=None, name="unnamed_lambda", gradient_function=None, model=None, regions=[], faults=[], builder=None, ): BaseFeature.__init__(self, name, model, faults, regions, builder) self.type = FeatureType.LAMBDA self.function = function self.gradient_function = gradient_function
def __init__(self, feature: BaseFeature, value: float): """ Parameters ---------- feature value """ BaseFeature.__init__( self, f"{feature.name}_unconformity", feature.model, feature.faults, feature.regions, feature.builder, ) self.feature = feature self.value = value self.type = FeatureType.UNCONFORMITY
def __init__( self, fold_frame, rotation, name="fold_rotation_angle", model=None, faults=[], regions=[], builder = None ): """ Parameters ---------- fold_frame rotation """ BaseFeature.__init__( self, f"{name}_displacement", model, faults, regions, builder ) self.fold_frame = fold_frame self.rotation = rotation
def __init__( self, fault_frame, displacement, name="fault_displacement", model=None, faults=[], regions=[], builder=None, ): """ Geological feature representing the fault displacement Parameters ---------- fault_frame - geometry of the fault displacement - function defining fault displacement """ BaseFeature.__init__( self, f"{name}_displacement", model, faults, regions, builder ) self.fault_frame = fault_frame self.displacement = displacement