Give a better error message than RuntimeError: empty maps are not supported by the schema.

Bug #1318346 reported by Michele Simionato
6
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://groups.google.com/forum/?hl=en#!topic/openquake-users/Ar0uU-Q22iM)

Revision history for this message
Michele Simionato (michele-simionato) wrote :

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.

Changed in oq-engine:
status: New → Incomplete
assignee: nobody → Michele Simionato (michele-simionato)
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.