本文整理汇总了Python中safe.gui.tools.minimum_needs.needs_profile.add_needs_parameters函数的典型用法代码示例。如果您正苦于以下问题:Python add_needs_parameters函数的具体用法?Python add_needs_parameters怎么用?Python add_needs_parameters使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了add_needs_parameters函数的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。
示例1: __init__
def __init__(self):
super(TsunamiEvacuationFunction, self).__init__()
self.impact_function_manager = ImpactFunctionManager()
# AG: Use the proper minimum needs, update the parameters
self.parameters = add_needs_parameters(self.parameters)
self.no_data_warning = False
开发者ID:Mloweedgar,项目名称:inasafe,代码行数:7,代码来源:impact_function.py
示例2: __init__
def __init__(self):
super(ClassifiedRasterHazardPopulationFunction, self).__init__()
self.impact_function_manager = ImpactFunctionManager()
# AG: Use the proper minimum needs, update the parameters
self.parameters = add_needs_parameters(self.parameters)
self.no_data_warning = False
开发者ID:Mloweedgar,项目名称:inasafe,代码行数:7,代码来源:impact_function.py
示例3: __init__
def __init__(self):
super(VolcanoPolygonPopulationFunction, self).__init__()
PopulationExposureReportMixin.__init__(self)
# AG: Use the proper minimum needs, update the parameters
self.parameters = add_needs_parameters(self.parameters)
self.no_data_warning = False
self.volcano_names = tr('Not specified in data')
开发者ID:easmetz,项目名称:inasafe,代码行数:7,代码来源:impact_function.py
示例4: __init__
def __init__(self):
super(TsunamiEvacuationFunction, self).__init__()
PopulationExposureReportMixin.__init__(self)
# AG: Use the proper minimum needs, update the parameters
self.parameters = add_needs_parameters(self.parameters)
self.no_data_warning = False
开发者ID:easmetz,项目名称:inasafe,代码行数:7,代码来源:impact_function.py
示例5: __init__
def __init__(self):
super(ClassifiedPolygonHazardPopulationFunction, self).__init__()
# Hazard zones are all unique values from the hazard zone attribute
self.hazard_zones = []
# AG: Use the proper minimum needs, update the parameters
self.parameters = add_needs_parameters(self.parameters)
# Set the question of the IF (as the hazard data is not an event)
self.question = tr("In each of the hazard zones how many people might be impacted.")
开发者ID:codeforresilience,项目名称:inasafe,代码行数:8,代码来源:impact_function.py
示例6: __init__
def __init__(self):
"""Constructor."""
super(FloodEvacuationRasterHazardFunction, self).__init__()
self.target_field = 'population'
self.impact_function_manager = ImpactFunctionManager()
# AG: Use the proper minimum needs, update the parameters
self.parameters = add_needs_parameters(self.parameters)
开发者ID:Charlotte-Morgan,项目名称:inasafe,代码行数:8,代码来源:impact_function.py
示例7: __init__
def __init__(self):
super(VolcanoPointPopulationFunction, self).__init__()
self.target_field = 'population'
# AG: Use the proper minimum needs, update the parameters
self.parameters = add_needs_parameters(self.parameters)
# TODO: alternatively to specifying the question here we should
# TODO: consider changing the 'population' metadata concept to 'people'
self.question = (
'In the event of a volcano point how many people might be impacted'
)
开发者ID:Charlotte-Morgan,项目名称:inasafe,代码行数:10,代码来源:impact_function.py
示例8: __init__
def __init__(self):
"""Constructor."""
super(FloodEvacuationRasterHazardFunction, self).__init__()
self.impact_function_manager = ImpactFunctionManager()
# AG: Use the proper minimum needs, update the parameters
self.parameters = add_needs_parameters(self.parameters)
# Initialize instance attributes for readability (pylint)
self.no_data_warning = False
开发者ID:jobel-openscience,项目名称:inasafe,代码行数:10,代码来源:impact_function.py
示例9: __init__
def __init__(self):
super(VolcanoPointPopulationFunction, self).__init__()
# AG: Use the proper minimum needs, update the parameters
self.parameters = add_needs_parameters(self.parameters)
# TODO: alternatively to specifying the question here we should
# TODO: consider changing the 'population' metadata concept to 'people'
self.question = (
'In the event of a volcano point how many people might be impacted'
)
self.no_data_warning = False
self.volcano_names = tr('Not specified in data')
self.hazard_zone_attribute = 'radius'
开发者ID:jobel-openscience,项目名称:inasafe,代码行数:12,代码来源:impact_function.py
示例10: __init__
def __init__(self):
"""Constructor."""
super(FloodEvacuationVectorHazardFunction, self).__init__()
# Use affected field flag (if False, all polygon will be considered as
# affected)
self.use_affected_field = False
# The 'wet' variable
self.wet = 'wet'
# AG: Use the proper minimum needs, update the parameters
self.parameters = add_needs_parameters(self.parameters)
self.no_data_warning = False
开发者ID:codeforresilience,项目名称:inasafe,代码行数:13,代码来源:impact_function.py
示例11: __init__
def __init__(self):
super(ClassifiedPolygonHazardPolygonPeopleFunction, self).__init__()
# Set the question of the IF (as the hazard data is not an event)
self.question = tr(
'In each of the hazard zones which areas might be affected.')
# Use the proper minimum needs, update the parameters
self.parameters = add_needs_parameters(self.parameters)
self.all_areas_ids = {}
self.all_affected_areas = {}
self.all_areas_population = {}
self.areas_names = {}
self.hazard_levels = {}
self.hazard_class_mapping = {}
self.hazard_class_field = None
开发者ID:jobel-openscience,项目名称:inasafe,代码行数:17,代码来源:impact_function.py
示例12: __init__
def __init__(self):
super(ITBFatalityFunction, self).__init__()
# AG: Use the proper minimum needs, update the parameters
self.parameters = add_needs_parameters(self.parameters)
self.hardcoded_parameters = OrderedDict([
('x', 0.62275231), ('y', 8.03314466), # Model coefficients
# Rates of people displaced for each MMI level
('displacement_rate', {
1: 0, 2: 0, 3: 0, 4: 0, 5: 0, 6: 1.0,
7: 1.0, 8: 1.0, 9: 1.0, 10: 1.0
}),
('mmi_range', range(2, 10)),
('step', 0.5),
# Threshold below which layer should be transparent
('tolerance', 0.01),
('calculate_displaced_people', True)
])
开发者ID:Charlotte-Morgan,项目名称:inasafe,代码行数:18,代码来源:impact_function.py
示例13: __init__
def __init__(self):
super(ITBFatalityFunction, self).__init__()
# AG: Use the proper minimum needs, update the parameters
self.parameters = add_needs_parameters(self.parameters)
self.hardcoded_parameters = OrderedDict([
('x', 0.62275231), ('y', 8.03314466), # Model coefficients
# Rates of people displaced for each MMI level
# should be consistent with defined mmi range below. - Hyeuk
('displacement_rate', {
2: 0.0, 3: 0.0, 4: 0.0, 5: 0.0, 6: 1.0,
7: 1.0, 8: 1.0, 9: 1.0, 10: 1.0
}),
# it should be range(2,11) if mmi 10 is included. Otherwise we
# should remove mmi 10 in the displacement_rate as well - Hyeuk
('mmi_range', range(2, 11)),
('step', 0.5),
('calculate_displaced_people', True)
])
self.total_fatalities = None
开发者ID:tomkralidis,项目名称:inasafe,代码行数:20,代码来源:impact_function.py
示例14: __init__
def __init__(self):
super(ContinuousHazardPopulationFunction, self).__init__()
self.impact_function_manager = ImpactFunctionManager()
# AG: Use the proper minimum needs, update the parameters
self.parameters = add_needs_parameters(self.parameters)
开发者ID:cchristelis,项目名称:inasafe,代码行数:6,代码来源:impact_function.py
注:本文中的safe.gui.tools.minimum_needs.needs_profile.add_needs_parameters函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论