First time here? Check out the Help page!
1 | initial version |
Do you need to use the the API in Plugin Mode? Saving a log file at the end of the simulation is easy when using the Python API in Library mode, because you simply put the log command after the simulation command. For example, if you have one function that runs the simulation (run_simulation) and another to save the log (save_ep_history), you can simply call the functions in that order:
run_simulation(...)
save_ep_history(...)
This way, each time you execute the script, it runs the simulations once and saves the log once after simulation completes. I'm not sure if/how you could do this using the API in Plugin Mode.