Conversation
SabineHaas
left a comment
There was a problem hiding this comment.
Thank you @Piranias for adding these KPIs.
I requested some changes and here are my general comments:
- I would add a section "Notes" before the "Returns" section and move the formulas to "Notes".
- Please add the test function names (see #todo TEST)
- I don't see how you added weighting in the calculation of the KPIs.
- @Smarties would ask you for assertion messages, see E2 tests for examples
Co-authored-by: Sabine Haas <[email protected]>
Co-authored-by: Sabine Haas <[email protected]>
Co-authored-by: Sabine Haas <[email protected]>
Co-authored-by: Sabine Haas <[email protected]>
Co-authored-by: Sabine Haas <[email protected]>
Co-authored-by: Sabine Haas <[email protected]>
why i.e? self sufficiency is just another term for OEM Co-authored-by: Sabine Haas <[email protected]>
Co-authored-by: Sabine Haas <[email protected]>
I adjusted the style of the functions to all the other functions in this module. I would not change the styling of single functions now.
done
I did not add weighting in the functions but I used the "total_flow_of_energy_conversion_equivalent " which should already contain the weighting. But I'm not 100% sure if I added all the flows correctly, let's wait for @smartie2076 ti check this!
done |
Co-authored-by: Sabine Haas <[email protected]>
Co-authored-by: Sabine Haas <[email protected]>
Co-authored-by: Sabine Haas <[email protected]>
smartie2076
left a comment
There was a problem hiding this comment.
Yay, three more KPI!
I think a change is necessary for the feedin calculation.
Also, regarding the tests - I think you only wrote some for the equations, not the add_xy functions?
I see in the tests for the equations that you tested for one example, but not for the extreme values (can autonomy be > 1? What if excessive local generation but also excess for oem?
I added the missing tests now!
The degree of autonomy can be > 1. See https://mvs-eland.readthedocs.io/en/latest/MVS_Outputs.html#degree-of-autonomy-da the OEM cannot be > 1. But this is due to the simulation, I wouldn't know how to test this. For an explanation see: https://mvs-eland.readthedocs.io/en/latest/MVS_Outputs.html#onsite-energy-matching-oem |
@Piranias - did you really run the I found errors when I did |
ahh, I did before but forgot to run it again after adding the tests :( sorry. Did you work i out yet, or should I ? |
|
I fixed it in ced0b21, before we get our CI fixed, make sure you run the tests before you ask for review :) |
Fix #603
Changes proposed in this pull request:
The following steps were realized, as well (if applies):
black . --exclude docs/)EXECUTE_TESTS_ON=master pytest)Please mark above checkboxes as following:
❌ Check not applicable to this PR
For more information on how to contribute check the CONTRIBUTING.md.