Closed AndrewC19 closed 3 years ago
Thanks @AndrewC19 ! Here the issue is not that the multisim hasn't been run, but that the individual sims haven't been merged. If after msim.run()
you add one of msim.reduce()
, msim.median()
, msim.mean()
, or msim.combine()
, it should work. However, I agree this error message is confusing and should be fixed!
Thanks for the quick reply @cliffckerr. I'm new to Covasim and didn't realise you had to merge the individual sims - a more informative error message would be helpful though!
Describe the bug The
to_excel
andto_json
methods for MultiSim are always raising RuntimeError: Please run the sim before exporting the results.To reproduce
Steps to reproduce the behavior: Modifying
t01_full_usage_example.py
:Expected behavior
Should export to xlsx but raises a RunTime error despite having run the sims.