-
Notifications
You must be signed in to change notification settings - Fork 7
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
Conversation
…cy and self-consumption calculation.
…atpump and Virtual Heatpump strategies. Added total_traded_energy_kWh to the AVRO schema.
Codecov ReportAttention:
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 |
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) |
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.
grrrrr, not pretty, but this is how it is with heritage. :-)
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.
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.
gsy_framework/sim_results/kpi.py
Outdated
@@ -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): |
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.
of course! Thanks for fixing!
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.
LGTM
No description provided.