You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure that this is a bug exactly, but thought it should be documented/discussed. If you save a FlowConfig (firedrake) checkpoint where the actuators are not zero and load the checkpoint, the actuators are initialized to the values when they were saved at. However, if this is in a FlowEnv and env.reset() is run, the actuators are set to zero. I would have expected these to be reset to the value the flow was loaded with.
Pseudo-code:
# original environmentenv=FlowEnv(config)
env.reset()
action=random_action()
env.step(action)
# non-zeroactuator_states= [actuator.u.values() foractuatorinenv.flow.actuators]
env.flow.save_checkpoint('/path/to/checkpoint/')
# load the checkpoint into a new FlowEnvnew_config= {'...', 'flow_config': {'restart': '/path/to/checkpoint/'}}
loaded_env=FlowEnv(config)
# same as before the saveloaded_actuator_states= [actuator.u.values() foractuatorinloaded_env.flow.actuators]
# These are set to zero.loaded_env.reset()
reset_actuator_states= [actuator.u.values() foractuatorinloaded_env.flow.actuators]
I'm using the latest version on main (commit 38826f4)
The text was updated successfully, but these errors were encountered:
Not sure that this is a bug exactly, but thought it should be documented/discussed. If you save a FlowConfig (firedrake) checkpoint where the actuators are not zero and load the checkpoint, the actuators are initialized to the values when they were saved at. However, if this is in a FlowEnv and env.reset() is run, the actuators are set to zero. I would have expected these to be reset to the value the flow was loaded with.
Pseudo-code:
I'm using the latest version on main (commit 38826f4)
The text was updated successfully, but these errors were encountered: