safe.impact_reports.building_exposure_report_mixin module

InaSAFE Disaster risk assessment tool developed by AusAid - Building Exposure Report Mixin Class

Contact : ole.moller.nielsen@gmail.com

Note

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

class safe.impact_reports.building_exposure_report_mixin.BuildingExposureReportMixin[source]

Bases: safe.impact_reports.report_mixin_base.ReportMixin

Building specific report.

New in version 3.1.

action_checklist()[source]

Breakdown by building type.

Returns:The buildings breakdown report.
Return type:list
buildings_breakdown()[source]

Breakdown by building type.

Returns:The buildings breakdown report.
Return type:list
generate_report()[source]

Breakdown by building type.

Returns:The report.
Return type:list
hospitals_closed[source]

Get the number of schools

Returns:The buildings breakdown report.
Return type:list

..Notes: Expect affected buildings to be given as following:

affected_buildings = OrderedDict([
(category, {building_type: amount}),
e.g.
(inundated, {residential: 1000, school: 0 ...}), (wet, {residential: 12, school: 2 ...}), (dry, {residential: 50, school: 50})

])

impact_summary()[source]

The impact summary as per category

Returns:The impact summary.
Return type:list
schools_closed[source]

Get the number of schools

Returns:The buildings breakdown report.
Return type:list

..Notes: Expect affected buildings to be given as following:

affected_buildings = OrderedDict([
(category, {building_type: amount}),
e.g.
(inundated, {residential: 1000, school: 0 ...}), (wet, {residential: 12, school: 2 ...}), (dry, {residential: 50, school: 50})

])

total_affected_buildings[source]

The total number of affected buildings

Returns:The total number of affected buildings.
Return type:int
total_buildings[source]

The total number of buildings.

Returns:The total number of buildings.
Return type:int
total_unaffected_buildings[source]

The total number of unaffected buildings.

Returns:The total number of unaffected buildings.
Return type:int