OasisLMF / ktools

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

Remove condition causing empty leccalc/ordleccalc output files when using period weights and user-defined return periods #345

Closed hchagani-oasislmf closed 1 year ago

hchagani-oasislmf commented 1 year ago

Remove condition causing empty leccalc/ordleccalc output files when using period weights and user-defined return periods

A leftover condition statement resulted in miscalculation of the maximum return period. The maximum return period is used to determine losses corresponding to user-requested return periods, and as the maximum return period was set at 0, all requested return periods lay beyond this maximum and were not calculated. Removing this conditional has solved the issue.