pyIncore is a component of IN-CORE. It is a python package consisting of two primary components: 1) a set of service classes to interact with the IN-CORE web services, and 2) IN-CORE analyses . The pyIncore allows users to apply various hazards to infrastructure in selected areas, propagating the effect of physical infrastructure damage and loss of functionality to social and economic impacts.
Mozilla Public License 2.0
25
stars
7
forks
source link
Chaining cumulative building damage to mean damage analysis #481
The output from the cumulative building damage analysis cannot be chained to the mean damage analysis. The issue stems from having the key "hazard" in the output dataset from the cumulative building damage analysis. This breaks down in analysisutil.py in the function dmg_string_dict_to_dmg_float_dict().
This can be fixed by:
Changing line 88 of analysisutil.py to: if key != 'guid' and key != 'haz_expose' and key !="hazard": (i.e., adding the key!="hazard" piece)
Alternatively, the output from the cumulative building damage analysis could be updated to have the same headings as the single hazard building damage analysis, although I'm unsure if this has downstream effects.
The output from the cumulative building damage analysis cannot be chained to the mean damage analysis. The issue stems from having the key "hazard" in the output dataset from the cumulative building damage analysis. This breaks down in analysisutil.py in the function
dmg_string_dict_to_dmg_float_dict()
.This can be fixed by:
if key != 'guid' and key != 'haz_expose' and key !="hazard":
(i.e., adding thekey!="hazard"
piece)Alternatively, the output from the cumulative building damage analysis could be updated to have the same headings as the single hazard building damage analysis, although I'm unsure if this has downstream effects.