OasisLMF / ReinsuranceTestTool

Test tool for new reinsurance functionality.
BSD 3-Clause "New" or "Revised" License
3 stars 1 forks source link

Error on example acc_1_CAT_XL #38

Closed johcarter closed 5 years ago

johcarter commented 5 years ago

I tried a CAT XL treaty with an account filter (RiskLevel=Acc) on AccountNumber 1. Got this error on Step 9:

Exec time: 0.21411585807800293

ValueError Traceback (most recent call last)

in () 1 # Step 9 - run the OED data though the Oasis Financial Module and output the losses by item at each inuring level. ----> 2 net_losses = reinsurance_tester.run_test('run_reinsurance', account_df, location_df, ri_info_df, ri_scope_df, loss_factor=1.0, do_reinsurance=do_reinsurance) 3 print("Ran {} inuring layers".format(len(net_losses) - 1)) 4 print("Losses for:") 5 for key in net_losses.keys(): ~/reinsurance_tester.py in run_test(run_name, account_df, location_df, ri_info_df, ri_scope_df, loss_factor, do_reinsurance, logger) 193 previous_inuring_priority, 194 previous_risk_level, --> 195 risk_level) 196 previous_inuring_priority = inuring_priority 197 previous_risk_level = risk_level ~/reinsurance_tester.py in run_inuring_level_risk_level(inuring_priority, account_df, location_df, items, coverages, fm_xrefs, xref_descriptions, ri_info_df, ri_scope_df, previous_inuring_priority, previous_risk_level, risk_level) 107 ) 108 --> 109 reinsurance_layer.generate_oasis_structures() 110 reinsurance_layer.write_oasis_files() 111 ~/reinsurance_layer.py in generate_oasis_structures(self) 686 level_id=node.level_id - 1, 687 agg_id=node.agg_id, --> 688 profile_id=max(profiles_ids) 689 )) 690 ValueError: max() arg is an empty sequence
johcarter commented 5 years ago

its working and giving the right numbers