• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Python needs_profile.add_needs_parameters函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了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;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Python needs_profile.NeedsProfile类代码示例发布时间:2022-05-27
下一篇:
Python sanity_check.check_layer函数代码示例发布时间:2022-05-27
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap