Closed willu47 closed 5 years ago
In chat with Tom:
data_handle.get_state
should read state from three sources - initial conditions, pre-specified planning and decision_module decisionsMethods to tidy up include:
get_state
method for the current timestep.
get_and_save_decisions
writes state for the current timestep which excludes pre-specified and initial_conditions
We are dealing with system state in an inconsistent manner, which means that while pre-specified planning decisions are included in every year of the state file, outputs from previous years of a decision module are not rewritten to a state file.
Solutions:
TLDR; either write separately and read in a bundle, or read separately and write in a bundle;
data_handle.get_state
method