-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed ThermalStorageResults having multiple entries #925
Fixed ThermalStorageResults having multiple entries #925
Conversation
ThermalGrid.results() will carry out both, thermalHouse and thermalStorage results whenever one of both got a change of its state. Since the state of the other hasn't changed, it was written out with the tick of the last change of it. This can and should be changed within another PR (Issue needs to be created). As workaround the tick of the result that triggered the output of the results will be used for both. |
…ntries # Conflicts: # CHANGELOG.md
…-multiple-entries # Conflicts: # CHANGELOG.md
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So now we're setting the result tick to the maximum tick of all results. But wouldn't it make more sense to only send out the results of the entity with the maximum tick? Because the other entity with a smaller result tick clearly has not changed the result.
…-multiple-entries # Conflicts: # CHANGELOG.md
Good idea! Thanks. |
…-multiple-entries # Conflicts: # CHANGELOG.md
…ve-multiple-entries' into df/#924-ThermalStorageResults-have-multiple-entries
…-multiple-entries # Conflicts: # CHANGELOG.md
Signed-off-by: Sebastian Peter <[email protected]>
@danielfeismann Adapted the code a bit for simplicity. Let me know what you think |
Signed-off-by: Sebastian Peter <[email protected]>
@sebastian-peter: Looks good to me! |
…-multiple-entries
…-multiple-entries # Conflicts: # CHANGELOG.md
resolves #924