OasisLMF / OasisPlatform

Loss modelling platform.
BSD 3-Clause "New" or "Revised" License
40 stars 17 forks source link

Add new custom code hooks into the V2 workflow #1071

Closed sambles closed 2 months ago

sambles commented 3 months ago

Issue Description

https://github.com/OasisLMF/OasisLMF/pull/1524 adds two new hooks, post_files and pre_loss these need adding to the distributed workflow.

For testing: https://github.com/OasisLMF/OasisPiWind/tree/test/all-hook-funcs

    "exposure_pre_analysis_module": "src/pre_files/exposure_pre_analysis_example.py",
    "exposure_pre_analysis_class_name": "MyExposurePreAnalysis", 
    "exposure_pre_analysis_setting_json": "src/pre_files/settings.json",

    "post_file_gen_module": "src/post_files/post_write_gen_example.py",
    "post_file_gen_setting_json": "src/post_files/settings.json",
    "post_file_gen_class_name": "MyPostFileGen",

    "pre_loss_module": "src/pre_loss/pre_loss_example.py",
    "pre_loss_setting_json": "src/pre_loss/settings.json",
    "pre_loss_class_name": "MyPreLoss",

    "post_analysis_module": "src/post_loss/post_analysis_example.py",
    "post_analysis_class_name": "MyPostAnalysis"