IN-CORE / pyincore

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

Open 22dylan opened 10 months ago

22dylan commented 10 months ago

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:

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.