def __init__(self, source_id, name, tectonic_region_type, mfd, surface, rake): super(CharacteristicFaultSource, self).__init__(source_id, name, tectonic_region_type, mfd, None, None, None) NodalPlane.check_rake(rake) self.surface = surface self.rake = rake
def __init__(self, source_id, name, tectonic_region_type, mfd, surface, rake): super(CharacteristicFaultSource, self).__init__( source_id, name, tectonic_region_type, mfd, None, None, None ) NodalPlane.check_rake(rake) self.surface = surface self.rake = rake
def __init__(self, source_id, name, tectonic_region_type, mfd, temporal_occurrence_model, surface, rake, surface_node=None): super().__init__( source_id, name, tectonic_region_type, mfd, None, None, None, temporal_occurrence_model) NodalPlane.check_rake(rake) self.surface = surface self.rake = rake
def __init__(self, source_id, name, tectonic_region_type, mfd, temporal_occurrence_model, surface, rake, surface_node=None): super().__init__( source_id, name, tectonic_region_type, mfd, None, None, None, temporal_occurrence_model) NodalPlane.check_rake(rake) self.surface = surface self.rake = rake
def __init__(self, mag, rake, tectonic_region_type, hypocenter, surface, source_typology, rupture_slip_direction=None, surface_nodes=()): if not mag > 0: raise ValueError('magnitude must be positive') if not hypocenter.depth > 0: raise ValueError('rupture hypocenter must have positive depth') NodalPlane.check_rake(rake) self.tectonic_region_type = tectonic_region_type self.rake = rake self.mag = mag self.hypocenter = hypocenter self.surface = surface self.source_typology = source_typology self.surface_nodes = surface_nodes self.rupture_slip_direction = rupture_slip_direction
def __init__(self, mag, rake, tectonic_region_type, hypocenter, surface, source_typology, rupture_slip_direction=None, surface_nodes=()): if not mag > 0: raise ValueError('magnitude must be positive') if not hypocenter.depth > 0: raise ValueError('rupture hypocenter must have positive depth') NodalPlane.check_rake(rake) self.tectonic_region_type = tectonic_region_type self.rake = rake self.mag = mag self.hypocenter = hypocenter self.surface = surface self.source_typology = source_typology self.surface_nodes = surface_nodes self.rupture_slip_direction = rupture_slip_direction