本文整理汇总了Python中openquake.hazardlib.geo.surface.complex_fault.ComplexFaultSurface.check_fault_data方法的典型用法代码示例。如果您正苦于以下问题:Python ComplexFaultSurface.check_fault_data方法的具体用法?Python ComplexFaultSurface.check_fault_data怎么用?Python ComplexFaultSurface.check_fault_data使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类openquake.hazardlib.geo.surface.complex_fault.ComplexFaultSurface
的用法示例。
在下文中一共展示了ComplexFaultSurface.check_fault_data方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: modify_set_geometry
# 需要导入模块: from openquake.hazardlib.geo.surface.complex_fault import ComplexFaultSurface [as 别名]
# 或者: from openquake.hazardlib.geo.surface.complex_fault.ComplexFaultSurface import check_fault_data [as 别名]
def modify_set_geometry(self, edges, spacing):
"""
Modifies the complex fault geometry
"""
ComplexFaultSurface.check_fault_data(edges, spacing)
self.edges = edges
self.rupture_mesh_spacing = spacing
示例2: __init__
# 需要导入模块: from openquake.hazardlib.geo.surface.complex_fault import ComplexFaultSurface [as 别名]
# 或者: from openquake.hazardlib.geo.surface.complex_fault.ComplexFaultSurface import check_fault_data [as 别名]
def __init__(
self,
source_id,
name,
tectonic_region_type,
mfd,
rupture_mesh_spacing,
magnitude_scaling_relationship,
rupture_aspect_ratio,
temporal_occurrence_model,
# complex fault specific parameters
edges,
rake,
):
super(ComplexFaultSource, self).__init__(
source_id,
name,
tectonic_region_type,
mfd,
rupture_mesh_spacing,
magnitude_scaling_relationship,
rupture_aspect_ratio,
temporal_occurrence_model,
)
NodalPlane.check_rake(rake)
ComplexFaultSurface.check_fault_data(edges, rupture_mesh_spacing)
self.edges = edges
self.rake = rake