Skip to content

bugfix LiveDataset size mismatch in Coops#303

Open
BasDekker-Zenmo wants to merge 3 commits into
mainfrom
bugfix-LiveDataset-size-mismatch-in-Coops
Open

bugfix LiveDataset size mismatch in Coops#303
BasDekker-Zenmo wants to merge 3 commits into
mainfrom
bugfix-LiveDataset-size-mismatch-in-Coops

Conversation

@BasDekker-Zenmo

Copy link
Copy Markdown
Contributor

@Luc-Sol Ik heb dit samen gemaakt met @AteZenmo . Deze bug kwam ook voor bij onpauzeren van GCs in combinatie met het gebruik van de filter functie voordat de nieuwe/ongepauzeerde GC een week gerunt heeft. Betreft issue: Zenmo/zero_Interface-Loader#285

@BasDekker-Zenmo BasDekker-Zenmo self-assigned this Jun 19, 2026
Luc-Sol added 2 commits June 22, 2026 18:42
- Created a class DataSetConstructor with a static method to get a new liveweek data set, which has values zero for all timesteps in the past.
- In the class J_LiveData the method clearLiveDataSets has been renamed to resetLiveDataSets to conform with the naming of AnyLogic's DataSet
- The old method resetLiveDataSets has been renamed to createNewLiveDataSets, it uses the above mentioned constructor.
- Removed f_initializeDataSets in the GridConnection as this function is now a one-liner call on liveData.
- f_collectGridConnectionLiveData in the EnergyCoop has been refactored. The previous commits in this PR solved the bug, but the .get(0) was still bothering me.
The loop size and time variables are now calculated from information from  J_TimeParameters and J_TimeVariables
- Renamed the helper functions f_addConsumptionEnergyCarrier, f_addProductionEnergyCarrier, f_addAssetFlow to specify AfterInitialization..
- TODO: Cleanup the timeParameters & timeVariables arguments and check for changes that effect other packages.
- Moved the helper functions f_addConsumptionEnergyCarrier, f_addProductionEnergyCarrier, f_addAssetFlow to J_LiveData.
Now they share one implementation between the GC, EnergyCoop & EnergyModel
- Added timeParameters as arguments to several functions, including functions that are called from interface package
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants