atlite
atlite copied to clipboard
Fix capacity factor timeseries in convert.py
The method convert and aggregate was adopted, so the capacity factor timeseries is returned and all functionality, such as return capacity and per_unit are kept.
Closes # (if applicable).
Change proposed in this Pull Request
Description
Motivation and Context
How Has This Been Tested?
Type of change
- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
Checklist
- [ ] I tested my contribution locally and it seems to work fine.
- [ ] I locally ran
pytestinside the repository and no unexpected problems came up. - [ ] I have adjusted the docstrings in the code appropriately.
- [ ] I have documented the effects of my code changes in the documentation
doc/. - [ ] I have added newly introduced dependencies to
environment.yamlfile. - [ ] I have added a note to release notes
doc/release_notes.rst. - [ ] I have used
pre-commit run --allto lint/format/check my contribution
thanks for the PR @TimFuermann, I will try to have a look at it soon
Thanks again @TimFuermann, this makes really sense. The function itself is a mess (not your changes!), and it builds one critical core of all our analyses, which is why I postponed the review so long. But it looks good. I would like to have a second pair of eyes looking at it. @lkstrp could you also have a look if the main logics are preserved? It is mainly tracking the action steps within the function being subject to the set of arguments... there is no time pressure on this