Correct way to save and load battery stateful (marshal and unmarshal)

  • Anton Szilasi
  • Topic Author
More
04 May 2023 12:54 #12102 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!

Please Log in or Create an account to join the conversation.

  • Paul Gilman
More
04 May 2023 21:50 #12105 by Paul Gilman
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.

Please Log in or Create an account to join the conversation.

Moderators: Paul Gilman
Powered by Kunena Forum