Closed larsbutler closed 12 years ago
It blows with a understandable but not user friendly
KeyError: 'CALCULATION_MODE'
if openquake is run with --include_defaults=false .
Otherwise the calculation mode is the one set in the default configurations files. The file openquake/default.gem currently in the repository sets it to 'Event Based'.
Maybe the default configuration file mechanism is just confusing and should be removed?
This should no longer be an issue.
For example, if you feed the current code (as of June 10, 2011) an old config file (HAZARD_CALCULATION_MODE = Classical and RISK_CALCULATION_MODE = Classical PSHA), it doesn't blow up. Instead, it just runs an Event Based calculation.
This is awful. Just plain awful. We should instead throw a helpful error.
Somehow, the ordered mixin code is allowing this to happen. Fix please.