- Posts: 7
Correct way to save and load battery stateful (marshal and unmarshal)
- ajszilasi@gmail.com
- Topic Author
Less
More
04 May 2023 06:54 #12102
by ajszilasi@gmail.com
Correct way to save and load battery stateful (marshal and unmarshal) was created by ajszilasi@gmail.com
Hello,
I am writing some code with the intent to execute battery stateful save its state (marshal) and then load it again (unmarshal) to execute another timestep (1 minute in this case). I intend to do this through hundreds of time steps with each timestep being a minute.
The script attached shows 3 timesteps (3 minutes)
This script appears to be working fine but Id like to confirm that this is the correct way to do this. Could someone kindly confirm many thanks!
I am writing some code with the intent to execute battery stateful save its state (marshal) and then load it again (unmarshal) to execute another timestep (1 minute in this case). I intend to do this through hundreds of time steps with each timestep being a minute.
The script attached shows 3 timesteps (3 minutes)
This script appears to be working fine but Id like to confirm that this is the correct way to do this. Could someone kindly confirm many thanks!
Attachments:
Please Log in or Create an account to join the conversation.
- pgilman
Less
More
- Posts: 5447
04 May 2023 15:50 #12105
by pgilman
Replied by pgilman on topic Correct way to save and load battery stateful (marshal and unmarshal)
Hi Anton,
This looks good to me, but I will have a colleague who is more familiar with the BatteryStateful module look as well.
Best regards,
Paul.
This looks good to me, but I will have a colleague who is more familiar with the BatteryStateful module look as well.
Best regards,
Paul.
Please Log in or Create an account to join the conversation.
Moderators: pgilman