Add a check for missing taxonomies in the scenario_damage calculator
Bug #1122817 reported by
Michele Simionato
This bug affects 1 person
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| OpenQuake (deprecated) |
Fix Committed
|
Medium
|
Michele Simionato | ||
Bug Description
If the fragility_model file contains less taxonomies than the ones in the exposure model, an error should be raised at the beginning, even before the computation starts (Vitor's specs).
| Changed in openquake: | |
| assignee: | nobody → Michele Simionato (michele-simionato) |
| importance: | Undecided → Medium |
| status: | New → In Progress |
| milestone: | none → 0.9.2 |
| Changed in openquake: | |
| status: | In Progress → Fix Committed |
To post a comment you must log in.
I would like to point out a potential issue here. Consider a large exposure coming from ged4gem with thosands of taxonomies; the spec says that the calculation cannot even start even if a single taxonomy is left over from the fragility model. I would have espected something different, like performing the computation for the taxonomies in the fragility model and printing a warning if there are taxonomies in the exposure model not covered in the fragility model.