oq-engine
oq-engine copied to clipboard
Reinsurance checks
The user can do tons of mistakes in the input files. We need to make sure that the engine gives clear error messages in such situations. Cases to consider:
Checks in the policy file:
- [x] policy present in the exposure but missing in the policy.csv file
- [x]
policycolumn should have no duplicated values - [ ] Sum of fractions for prop treaties should be between >=0 and <=1
- [x] The
liabilityanddeductiblecolumns should be float >= 0 - [x] The nonprop treaties should be 0 or 1
- [ ] Any condition in the order of the treaties? Shall we write in the documentation how the information is processed?
Checks in the reinsurance file:
- [x] treaties present in the reinsurance.xml but missing in the policy.csv file
- [x]
typevalues are withinprop,wxlrorcatxl - [x] The
deductible,limitandmax_cession_eventcolumns should be float >= 0
Checks in the configuration file:
- [ ]
aggregate_byconditions:- [x] missing aggregate_by=policy
- [ ] multiple aggregate_by (i.e. aggregate_by=policy; taxonomy ok)
- [ ] multiple aggregate_by (i.e. aggregate_by=taxonomy; policy wrong)
- [ ] multiple aggregate_by (i.e. aggregate_by=policy, taxonomy wrong)
- [x] missing total_losses
- [ ] multiple loss types in reinsurance_file must be an error
Others
- [ ] scenario_risk starting from rupture or from GMFs
Please check the updated list.