Conversation
|
I've just realized that in the documentation there's an example for an electrolyzer that works differently.. maybe it's worth to talk about it. Let me know when you have time @smartie2076 |
moved to issue #599 |
smartie2076
left a comment
There was a problem hiding this comment.
I did go commit by commit now to ease the process, but I am not sure how comments are presented when you afterwards changed the specific parts of code I commented on. There may be outdated comments.
Commit ebece71 was a bit big to be reviewed.
What do you mean with "cry for benchmark tests" in b292bd4?
Can you add more info on how transformers are modeled and what the parameters mean in the RTD? Both in Modell_Assumptions.rst and in the parameter description for efficiency as a specific case. Do you have knowledge to share how to use multilple in/outputs?
| "value": 10 | ||
| } | ||
| }, | ||
| "transformer_optimize_multiple_output_busses": { |
There was a problem hiding this comment.
A comment to this file: I like to define this dict directly in the pytest files, because then we do not need to check if the stuff around it is important. Not sure if that works for you, though.
There was a problem hiding this comment.
In the beginning I defined only needed data in the json file, which was already a lot, which is why I didn't define the dictionaries in the python file. You have added the information around once (was necessary for other tests / completeness of input data.... I don't remember well). So, now I'm a bit confused - I thought the stuff around was necessary - would you remove it again?
There was a problem hiding this comment.
@Bachibouzouk correct me if I am wrong, but I think if it is a json file, then the json must be a complete input file with all parameters. If you define it in the pytest directly, then it does not have to be complete. If all of that is needed for the test/it is too much to define in the py file, then we should leave it as is.
There was a problem hiding this comment.
Not all of it is needed, but also before entries were added to make the json complete it was too much to define in the py file, to my mind. So, I would leave it as it is.
|
Ah, and in the |
|
Executing all pytests locally results in an error: |
I think it doesn't make sense to check the creation of transformers with efficiency as time series for all cases all over again - I thought if we want to test this we would have to do it in a benchmark test.
added
It already says "Ratio of energy output/energy input." there, this accounts for a transformer, as well.
Only how to define them, as explained here. I haven't used a transformer with multiple in- or outflows, yet. |
I don't get any error. But also didn't before I changed parts of the code - so maybe you should run the tests again to be sure. |
@smartie2076 , the error is only local because it looks into one of the input files it found in your path (cf above). when |
It also is in a benchmark test, I believe.
Acknowledged, we can see when implementing more benchmark tests. |
smartie2076
left a comment
There was a problem hiding this comment.
Thank you! If I am right, you only had to add assertion messages and notes where you test which functions. Thats all good!
I would add the sentence about the changed D1 functions in the changelog.md, but yeah...
Fix #333
Fix #389
Fix #246
Changes proposed in this pull request:
variable_costs,efficiencyandnominal_valueof transformers on output flowsThe 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.