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
24 stars 7 forks source link

DFR3Service error when fragility mapping rule set is empty #555

Closed navarroc closed 1 month ago

navarroc commented 2 months ago

There seems to be an issue when the fragility mapping rule set is empty. If you run the road_dmg.ipynb notebook, the following exception is thrown in pyincore:

dfr3service.py", line 403, in _convert_properties_to_dict
    boolean = list(rules.keys())[0]  # AND or OR
IndexError: list index out of range