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
Add feature to shift fragility by a certain given percentage #554
Add a function shift_fragility(fragilityCurveSet, percent), which
takes the json file for mapping,
extracts the fragility sets,
extracts parameters, "expression" from the fragility and,
shifts the fragility with the above function by the given percentage
replaces the expressions with the new updated expression and substitute it back to the modified_fragilityCurveSet with copy.deepcopy(fragilityCurveSet) and saves the new jsons to the local disk or upload to get id.
create newMappingSet from the new fragility sets by copying back to the original mapping json
Add a function shift_fragility(fragilityCurveSet, percent), which