oq-engine icon indicating copy to clipboard operation
oq-engine copied to clipboard

Reinsurance checks

Open micheles opened this issue 2 years ago • 1 comments

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] policy column should have no duplicated values
  • [ ] Sum of fractions for prop treaties should be between >=0 and <=1
  • [x] The liability and deductible columns 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] type values are within prop, wxlr or catxl
  • [x] The deductible, limit and max_cession_event columns should be float >= 0

Checks in the configuration file:

  • [ ] aggregate_by conditions:
    • [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

micheles avatar Oct 05 '22 06:10 micheles

Please check the updated list.

CatalinaYepes avatar Oct 05 '22 12:10 CatalinaYepes