- Posts: 7
Correct way to save and load battery stateful (marshal and unmarshal)
- Anton Szilasi
- Topic Author
Less
More
04 May 2023 06:54 #12102
by Anton Szilasi
Correct way to save and load battery stateful (marshal and unmarshal) was created by Anton Szilasi
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.
- Paul Gilman
Less
More
- Posts: 5476
04 May 2023 15:50 #12105
by Paul Gilman
Replied by Paul Gilman 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: Paul Gilman