OasisLMF / ktools

In-memory simulation kernel for loss modelling.
BSD 3-Clause "New" or "Revised" License
29 stars 18 forks source link

Additional model file validation checks #373

Closed hchagani-oasislmf closed 7 months ago

hchagani-oasislmf commented 7 months ago

Additional model file validation checks

Two additional model file validation checks have been incorporated:

  1. In the vulnerability file, damage bins indices must be contiguous and the first bin must have an ID of 1. This affects validatevulnerability and vulnerabilitytobin. The check for duplicate damage bin indices has been removed as it is no longer required.
  2. In the damage bin dictionary file, warnings are produced should the interpolation value not lie in the bin centre. This affects validatedamagebin and damagebintobin.