bugfix total installed PV/Wind/Batteries#131
Merged
Conversation
Contributor
Luc-Sol
commented
Mar 20, 2025
- The totals installed for PV / Wind and Batteries were not reset before being recalculated inside the AssetsMetaData class.
- Also added a toString function for the AssetsMetaData class
- The totals installed for PV / Wind and Batteries were not reset before being recalculated. - Also added a toString function for the AssetsMetaData class
- Added a collection c_parentCoops to the GC canvas. Filled with any coops that the GC is a member of. (not customers) - Removed the updates to totalInstalled PV / Wind / Batteries from the AssetsMetaData update method. They should always already be correctly set. - Now sets the totalInstalled PV / Wind / Batteries in the AssetsMetaData class of the EnergyCoop.
Contributor
Author
|
Added another commit where I removed the recalculation in the method entirely. Also added the bookkeeping for the EnergyCoop totals (requires Zenmo/zero_Interface-Loader#67 ) |
Collaborator
… and not become a pointer
Collaborator
|
Alright, fout zat hem in de lijn bij de initializatie van de customCoop: c_memberGridConnections = gcList (waar gcList de input was van de f_addCustomCoop. Waar gcList in de interface werd gevuld met de c_selectedGridConnections. Maar als op de interface nu de c_selectedGridConnections werd aangepast, paste hij de c_memberGridConnections ook automatisch aan in de coop in de engine. Dit moet niet. Dus: veranderd in c_memberGridConnections.addAll(gcList); Nu is het probleem verholpen, en zijn het weer twee apparte collecties |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
