Skip to content
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

Fix GB wind being None #3609

Merged
merged 3 commits into from
Dec 20, 2021
Merged

Fix GB wind being None #3609

merged 3 commits into from
Dec 20, 2021

Conversation

pierresegonne
Copy link
Member

@pierresegonne pierresegonne commented Dec 20, 2021

Issue

Quite regularly, the wind production for edge hours (23:00 UTC which is 00:00 Europe/London) would be converted to None. This happens because there is a temporal gap between the data original fetched, and the wind fetched ad-hoc, meaning that we loose data for that half hour.

Reproduce:

poetry run python test_parser.py GB production --target_datetime 2019-09-20

Description

Makes sure to fetch enough data to match wind production against the other production modes, and add fail safe fallback by making wind required.

Copy link
Member

@madsnedergaard madsnedergaard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! 🙌

@pierresegonne pierresegonne merged commit cf5b860 into master Dec 20, 2021
@pierresegonne pierresegonne deleted the ps/fix_elexon_wind branch December 20, 2021 11:01
@@ -238,7 +238,7 @@ def _fetch_wind(target_datetime=None):

# line up with B1620 (main production report) search range
d = target_datetime.date()
start = d - dt.timedelta(hours=24)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

pierresegonne added a commit that referenced this pull request Feb 23, 2022
* Isort

* Request wind data further back

* Add wind to required field
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants