At the end of a hive simulation, we dump the configuration as a yaml file into the outputs folder with this method. .
Some of the outputs are getting written as python objects which makes it harder to read and more fragile for future updates. See the end of this post for a sample of the denver demo config written to the outputs.
Any place in which we're dumping something like !!python/object/new:nrel.hive.model.sim_time.SimTime, we should replace it with an alternative. In the case of the sim time, it might be the most readable to call SimTime.as_iso_time(). The paths should be in resolved absolute strings. All of the ScheduleType, ChargingSearchType, ReportType should be in strings, similar to how they're represented in the default config.
At the end of a hive simulation, we dump the configuration as a yaml file into the outputs folder with this method. .
Some of the outputs are getting written as python objects which makes it harder to read and more fragile for future updates. See the end of this post for a sample of the denver demo config written to the outputs.
Any place in which we're dumping something like
!!python/object/new:nrel.hive.model.sim_time.SimTime
, we should replace it with an alternative. In the case of the sim time, it might be the most readable to callSimTime.as_iso_time()
. The paths should be in resolved absolute strings. All of the ScheduleType, ChargingSearchType, ReportType should be in strings, similar to how they're represented in the default config.