I have looked at the schedule_events and schedule_command to schedule/register some sim events (and hence not do that in the analysis_fn callback, although it works). These are sheet oriented to operate on sheet. Are there any ways to schedule events through a call-back, ie when time T is met, or after duration D, call a call back? I want to add a sheet (or potentially something else).
schedule_command does exactly what you want. It does not know anything about Sheets, and simply runs an arbitrary supplied bit of Python code, as a string, at time T.
I have looked at the schedule_events and schedule_command to schedule/register some sim events (and hence not do that in the analysis_fn callback, although it works). These are sheet oriented to operate on sheet. Are there any ways to schedule events through a call-back, ie when time T is met, or after duration D, call a call back? I want to add a sheet (or potentially something else).