OasisLMF / ktools

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

Use classic event rates in Moment Event Loss Table (MELT) #320

Closed hchagani-oasislmf closed 1 year ago

hchagani-oasislmf commented 2 years ago

Issue Description

Related to MDK issue https://github.com/OasisLMF/OasisLMF/issues/906. A new, optional input file event_dict.bin gives the OriginalEventRate and EventDescription for each event ID. If the event dictionary file exists, the event rates should be taken from this file rather than calculated from the occurrence file as is the current default in eltcalc.

Three tasks to complete:

Edit: Use a dedicated event_rates.csv file which contains the event_id and OriginalEventRate fields. If this file exists, the event rates should be taken from this file rather than calculated from occurrence file as is the current default in eltcalc. eltcalc should be able to read the event rates file in csv format.