Allow parameters to be defined as timeseries for storage assets#720
Allow parameters to be defined as timeseries for storage assets#720
Conversation
|
Unfortunately one check is failing. Do I need to have python 3.8 installed? I don't really understand the error message. Could you give me a hint @smartie2076? |
|
Hi @MaGering! As a tip, instead of writing
Please write
(It seems that github understands that you want to mention the issue, but it does not connect those two in this fashion. Also, by writing |
Oh right! Thanks for this advise. I will change that! |
- Exception needs to be tested - Changed `energyStorage.csv` - Added `storage_1.csv` - Added column in `parameter_timeseries`
|
I am checking locally now if that fix works. |
smartie2076
left a comment
There was a problem hiding this comment.
This works as a quick fix for the issue. However, this is not really the proper way to do it - we would need to change A1 for that.
Current result:
"soc_min": {
"file_name": "parameter_timeseries.csv",
"header": "soc_min",
"unit": "factor",
"value": [...]
},
filename, unit and header should, however, be wrapped within value as an output of A1. As this is more work, we can leave it at that right now.
Necessary is, however, that you create a CHANGELOG.md entry. Please onle make your PR ready to merge/review green if you are sure it can be merged (see checklist), ie. initially always create a draft pull request.
Will request a PR into this one with additions.
Oh, really?! Then I might have been mistaken. Even better! |
…eview Fix/c0 storage time series review
smartie2076
left a comment
There was a problem hiding this comment.
Ready to be merged :)
| if parameter in dict_values[group][asset][subasset] and ( | ||
| FILENAME in dict_values[group][asset][subasset][parameter] | ||
| and HEADER in dict_values[group][asset][subasset][parameter] |
There was a problem hiding this comment.
Usually, I would request a pytest to be created for this case. As this feature is covered with the benchmark test I created, and C0 functions are anyway lacking pytests, this is fine.

Fix #719
With this PR it is possible to process a time series of the Storage component passed in storage_*.csv.
In
energyStorage(...)ofC0_data_processing.pythe key'value'leads to an error because it does not exists before the time series is read. I therefore replaced it with another condition, which is analogous to the parameter'efficiency'of theTransformercomponent and adapted it accordingly: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.