It could be helpful to expose more operations from the executor, other than just the routines.
An example are functions to save or close the execution:
from myexecutor import ramsey, flipping, save, close
ramsey(...)
save()
flipping(...)
close()
Below a list of interesting operations:
[ ] save(): dump the state of the execution as it is
[ ] flush(): dump the state and free memory
[ ] close(save=True): disconnect the platform, and do the other operation to gracefully close the session (e.g. timing, and a default save, that could be disabled with a parameter)
In a sense, this is an extension of #878.
It could be helpful to expose more operations from the executor, other than just the routines. An example are functions to save or close the execution:
Below a list of interesting operations:
save()
: dump the state of the execution as it isflush()
: dump the state and free memoryclose(save=True)
: disconnect the platform, and do the other operation to gracefully close the session (e.g. timing, and a default save, that could be disabled with a parameter)