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

Feature/gsye 650 heatpump fixes #493

Merged
merged 12 commits into from
Jan 5, 2024
Merged

Conversation

spyrostz
Copy link
Member

No description provided.

Copy link

codecov bot commented Dec 19, 2023

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (580cd25) 66.52% compared to head (cdd9e05) 66.50%.
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #493      +/-   ##
==========================================
- Coverage   66.52%   66.50%   -0.03%     
==========================================
  Files          81       81              
  Lines        5267     5269       +2     
  Branches      861      862       +1     
==========================================
  Hits         3504     3504              
- Misses       1602     1603       +1     
- Partials      161      162       +1     

Comment on lines 69 to +73
if is_load_node_type(child):
self.total_energy_demanded_wh += child_stats.get("total_energy_demanded_wh", 0)
if is_heatpump_node_type(child):
self.total_energy_demanded_wh += (
child_stats.get("total_traded_energy_kWh", 0) * 1000.0)
Copy link
Member

Choose a reason for hiding this comment

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

grrrrr, not pretty, but this is how it is with heritage. :-)

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, this is the unfortunate thing with inheritance and with mixing units as well. At least from now on, we should probably stick to kWh no matter what FE or customers say.

@@ -52,7 +52,7 @@ def accumulate_devices(self, area_dict: Dict):
if "DH" in area_dict["name"]:
return
for child in area_dict["children"]:
if is_producer_node_type(child) or is_heatpump_node_type(child):
Copy link
Member

Choose a reason for hiding this comment

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

of course! Thanks for fixing!

Copy link
Member

@hannesdiedrich hannesdiedrich left a comment

Choose a reason for hiding this comment

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

LGTM

@spyrostz spyrostz merged commit 8ba2246 into master Jan 5, 2024
2 of 4 checks passed
@spyrostz spyrostz deleted the feature/GSYE-650-heatpump-fixes branch January 5, 2024 15:42
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