Skip to content
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

GSYE-568: Add create_hierarchy_stats to SimulationEndpointBuffer #1796

Merged
merged 2 commits into from
Sep 19, 2024

Conversation

hannesdiedrich
Copy link
Member

Reason for the proposed changes

Please describe what we want to achieve and why.

Proposed changes

INTEGRATION_TESTS_BRANCH=master
GSY_FRAMEWORK_BRANCH=master

Copy link

codecov bot commented Sep 19, 2024

Codecov Report

Attention: Patch coverage is 69.49153% with 18 lines in your changes missing coverage. Please review.

Project coverage is 69.51%. Comparing base (0d0d054) to head (ccbb95a).
Report is 4 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1796   +/-   ##
=======================================
  Coverage   69.51%   69.51%           
=======================================
  Files         147      147           
  Lines       13943    13986   +43     
  Branches     2598     2607    +9     
=======================================
+ Hits         9692     9722   +30     
- Misses       3742     3753   +11     
- Partials      509      511    +2     

Copy link
Contributor

@BigTava BigTava left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks Good!
On another note, I noticed now that we are using variables with "scm" attached in gsy-e too. I believe we have extensively used this in order to identify logic that is probably only used in our SCM product. But in the case of gsy-e which is open-source code IMO it should be totally avoided and removed.

@hannesdiedrich hannesdiedrich merged commit 11c75f1 into master Sep 19, 2024
2 of 4 checks passed
@hannesdiedrich hannesdiedrich deleted the feature/GSYE-568 branch September 19, 2024 14:38
"""Calculate hierarchy related statistics."""
hierarchy_self_consumption_list = {}
self._calc_hierarchy_stats(area, 0, hierarchy_self_consumption_list)
for level, consumption_list in hierarchy_self_consumption_list.items():
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The KPI value is not the intended one here. We actually want to replicate this:
image

Therefore I think that this can be done a bit more elaborate here. Let's discuss it on Slack to settle. I will also add the screenshot in the ticket in order to have it available.

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.

3 participants