-
Notifications
You must be signed in to change notification settings - Fork 70
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
Issue604 kpis disaggregated #606
base: master
Are you sure you want to change the base?
Conversation
If called multiple times, xxxx_dict_by_source used to increase even when the test case is not moving forward because it was calculated from xxxx_dict instead of using the _get_data_from_last_index method.
…tot. Notice that this does not affect to the xxxx_tot results.
@JavierArroyoBastida Thanks for this. I'm not sure I will get to this today but will try to sometime next week. |
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.
@JavierArroyoBastida Thanks for this and your patience. Generally this is looking good. A few inline comments.
One thing I'm thinking is that I've learned a bit in REST API design since original implementation of BOPTEST's, and I think a better way to do this would be create an endpoint GET /kpi/disaggregated. But, no other APIs use this address extension format (yet). So, I'm inclined to maybe just keep what you propose for now and this might change with a more comprehensive API format adjustment down the line (i.e. when consolidating into only using the Service architecture). Open to any discussion around this though.
Some additonal to-dos I'm thinking of:
- update user guide with new api endpoint
- it might be good to add a section in the design guide describing this disaggregation (e.g. ensuring to also include clarification on what the values mean for peak power, whether it is the peak power of the individual element considered separately or it is the contribution to the total peak at that time).
- resolve any conflicts
@@ -1,5 +1,5 @@ | |||
keys,value | |||
PCoo_y,0.0 | |||
PFan_y,0.000108999039431 | |||
PHea_y,0.111074370884 | |||
PFan_y,0.00523195389267 |
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.
Are these changing because of a correction on accounting for area or not within the disaggregated dictionary values? Same with pgas_dict_MultiZone.csv.
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.
Exactly, this is due to 08a4dfc. For some reason for peak KPIs we were normalizing with the area at the contributions of each element already which is reflected at the pele_dict
and pgas_dict
dictionaries. This was not consistent with the rest of KPIs where we normalize only when calculating the total value (xxxx_tot
).
'''Return the core KPIs of a test case disaggregated and | ||
with absolute values (not normalized by area or zone) | ||
to see the contributions of each element to each KPI. | ||
Parameters |
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.
Add space before Parameters.
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.
Price scenario for cost kpi calculation. | ||
'Constant' or 'Dynamic' or 'HighlyDynamic'. | ||
Default is 'Constant'. | ||
Returns |
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.
Add space before Returns.
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.
dkpi = dict | ||
Dictionary with the core KPIs disaggregated and | ||
with absolute values. | ||
''' |
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.
Add space before '''.
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.
README.md
Outdated
@@ -76,6 +76,7 @@ Example RESTful interaction: | |||
| Receive control signal point names (u) and metadata. | GET ``inputs`` | | |||
| Receive test result data for the given point names between the start and final time in seconds. | PUT ``results`` with required arguments ``point_names=<list of strings>``, ``start_time=<value>``, ``final_time=<value>``| | |||
| Receive test KPIs. | GET ``kpi`` | | |||
| Receive test KPIs disaggregated and in absolute values. | GET ``kpi_disaggregated`` | |
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.
@JavierArroyoBastida Suggest a bit more clarity: "Receive test KPIs disaggregated into contributing components (e.g. each equipment or zone) ... "
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.
Thanks for the review @dhblum! I'll go through your comments by next week. |
…_kpisDisaggregated # Conflicts: # testing/references/bestest_hydronic/submit.json # testing/references/testcase3/submit.json
Changed from 'pgas_tot': 0.12017492256526957 to 'pgas_tot': 0.12017492256526958
…esidential_hydronic.
# Conflicts: # releasenotes.md
…_kpisDisaggregated
@dhblum I finally got tests to pass and I believe this is ready for a second review. The change introduced in |
Closes #604. @dhblum could you take a look?