Is your feature request related to a problem? Please describe.
During debug (or simulations) there is a main function I may call. If I want to save all the config data passed to this, I have to call saveObj for each object individually.
Describe the solution you'd like
When calling a method f pass it and all parameters a, b, c, for example to a single function like:
SimLogger.saveCall(simTag, f, a, b, c)
Where it saves the method name being called, and automatically saves each object (preferably without giving objTags, see #32)
Optionally, if possible this could just be at the beginning of the method we are saving (which might be a better solution to avoid the confusion whether we are actually calling the method in the previous solution). Looking like:
def f(a,b,c):
SimLogger.saveCall()
# rest of function
Describe alternatives you've considered
As mentioned, I could manually save all the data, but it might be nice to have all of it packaged together into a tuple or list so that you could easily later call f(*loadedargs)
Is your feature request related to a problem? Please describe.
During debug (or simulations) there is a main function I may call. If I want to save all the config data passed to this, I have to call saveObj for each object individually.
Describe the solution you'd like
When calling a method
fpass it and all parametersa,b,c, for example to a single function like:SimLogger.saveCall(simTag, f, a, b, c)Where it saves the method name being called, and automatically saves each object (preferably without giving objTags, see #32)
Optionally, if possible this could just be at the beginning of the method we are saving (which might be a better solution to avoid the confusion whether we are actually calling the method in the previous solution). Looking like:
Describe alternatives you've considered
As mentioned, I could manually save all the data, but it might be nice to have all of it packaged together into a tuple or list so that you could easily later call
f(*loadedargs)