Give a better error message than RuntimeError: empty maps are not supported by the schema.
Bug #1318346 reported by
Michele Simionato
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenQuake Engine |
Incomplete
|
Low
|
Michele Simionato |
Bug Description
This happens since the region specified in the risk job might not be covering any assets. It is triggered by a command like
$ openquake --export-risk 245 Th_risk
(reported here: https:/
To post a comment you must log in.
There is a validation for that case in ./openquake/ engine/ calculators/ risk/validation .py. It should be moved to commonlib, but that is another ticket.
Here we could put a check on the exporter. It is best not to do anything until this happens again and we have access to the input files, so that we can see what's the real problem.