You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Settings editor: select inuring priorities for net (ri) and reinsurer's loss (rl) outputs #61
On fix/workflow-bugs (PR #55) the settings editor already supports the Reinsurance Loss (rl) perspective: rl_output / rl_summaries, summary levels and reports, and the results view shows outputs split by inuring priority (rl_IP1_S1_*, ri_IP1_S1_*). What is still missing is the ability to request outputs at intermediate inuring priorities.
Missing
No control for ri_inuring_priorities / rl_inuring_priorities. oasislmf supports these analysis settings (net loss and reinsurer's loss at selected OED InuringPriority values, mapped via input/ri_inuring_priority_output_levels.json), and both are in the ODS_Tools analysis settings schema, but the editor has no way to set them.
Template values are silently dropped. The editor rebuilds settings from the template but filters out every key starting with a perspective prefix (pages/components/settings_editor.py:527-530, not any(k.startswith(f'{p}_') for p in PERSPECTIVES)), then only writes back *_output / *_summaries. So ri_inuring_priorities / rl_inuring_priorities set in a template are lost when the analysis is saved.
Suggested work
Add a multi-select for the inuring priorities, shown under the RI and RL perspectives when they are enabled. The options come from the InuringPriority values in the portfolio's reinsurance info file (client.get_reinsurance_info_file).
Keep ri_inuring_priorities / rl_inuring_priorities from the template, or have the editor manage them explicitly.
Add tests in tests/test_settings_editor.py. Cover template round-trip of both keys, and the selector only appearing when the portfolio has RI files.
Activity