CLIMADA-project/climada_petals

event ids must be greater than zero

Closed this issue · 3 comments

The plotting methods of hazard expect event ids to be greater than zero but this constraint is never checked.

Either change the arguable argument handling in the plotting methods and get rid of the somewhat obscure integer magic - or just include the constraint in the check method.

CLIMADA-project/climada_python#546 adds a check for valid event IDs to the Hazard.check method.