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

feat(exchange): Add data for GB->IM #7238

Merged
merged 3 commits into from
Sep 30, 2024
Merged

feat(exchange): Add data for GB->IM #7238

merged 3 commits into from
Sep 30, 2024

Conversation

VIKTORVAV99
Copy link
Member

@VIKTORVAV99 VIKTORVAV99 commented Sep 26, 2024

Issue

Closes: #7123

Description

Parses the exchange flow between GB and IM by using the balancing dataset as it's treated differently than the other exchanges.

Important

It seems like these flows are decided ahead of time, which is why the warnings occur but I've double checked it against the official website here: https://bmrs.elexon.co.uk/balancing-mechanism-bmu-view?bmuId=E_MANXENR-1&activeTab=Physical&startDate=2024-09-24T23:00:00.000Z&endDate=2024-09-25T15:00:00.000Z
I don't think there is anything we need to do about this though, just aware that the warnings are expected.

Preview

[{'datetime': datetime.datetime(2024, 9, 24, 23, 30, tzinfo=datetime.timezone.utc),
  'netFlow': 14.0,
  'sortedZoneKeys': 'GB->IM',
  'source': 'elexon.co.uk',
  'sourceType': <EventSourceType.measured: 'measured'>},
 {'datetime': datetime.datetime(2024, 9, 25, 0, 0, tzinfo=datetime.timezone.utc),
  'netFlow': 12.0,
  'sortedZoneKeys': 'GB->IM',
  'source': 'elexon.co.uk',
  'sourceType': <EventSourceType.measured: 'measured'>},
 {'datetime': datetime.datetime(2024, 9, 25, 0, 30, tzinfo=datetime.timezone.utc),
  'netFlow': 12.0,
  'sortedZoneKeys': 'GB->IM',
  'source': 'elexon.co.uk',
  'sourceType': <EventSourceType.measured: 'measured'>},
 {'datetime': datetime.datetime(2024, 9, 25, 1, 0, tzinfo=datetime.timezone.utc),
  'netFlow': 9.0,
  'sortedZoneKeys': 'GB->IM',
  'source': 'elexon.co.uk',
  'sourceType': <EventSourceType.measured: 'measured'>},
 {'datetime': datetime.datetime(2024, 9, 25, 1, 30, tzinfo=datetime.timezone.utc),
  'netFlow': 9.0,
  'sortedZoneKeys': 'GB->IM',
  'source': 'elexon.co.uk',
  'sourceType': <EventSourceType.measured: 'measured'>},
 {'datetime': datetime.datetime(2024, 9, 25, 2, 0, tzinfo=datetime.timezone.utc),
  'netFlow': 9.0,
  'sortedZoneKeys': 'GB->IM',
  'source': 'elexon.co.uk',
  'sourceType': <EventSourceType.measured: 'measured'>},
 {'datetime': datetime.datetime(2024, 9, 25, 2, 30, tzinfo=datetime.timezone.utc),
  'netFlow': 9.0,
  'sortedZoneKeys': 'GB->IM',
  'source': 'elexon.co.uk',
  'sourceType': <EventSourceType.measured: 'measured'>},
 {'datetime': datetime.datetime(2024, 9, 25, 3, 0, tzinfo=datetime.timezone.utc),
  'netFlow': 9.0,
  'sortedZoneKeys': 'GB->IM',
  'source': 'elexon.co.uk',
  'sourceType': <EventSourceType.measured: 'measured'>},
 {'datetime': datetime.datetime(2024, 9, 25, 3, 30, tzinfo=datetime.timezone.utc),
  'netFlow': 9.0,
  'sortedZoneKeys': 'GB->IM',
  'source': 'elexon.co.uk',
  'sourceType': <EventSourceType.measured: 'measured'>},
 {'datetime': datetime.datetime(2024, 9, 25, 4, 0, tzinfo=datetime.timezone.utc),
  'netFlow': 9.0,
  'sortedZoneKeys': 'GB->IM',
  'source': 'elexon.co.uk',
  'sourceType': <EventSourceType.measured: 'measured'>},
 {'datetime': datetime.datetime(2024, 9, 25, 4, 30, tzinfo=datetime.timezone.utc),
  'netFlow': 9.0,
  'sortedZoneKeys': 'GB->IM',
  'source': 'elexon.co.uk',
  'sourceType': <EventSourceType.measured: 'measured'>},
 {'datetime': datetime.datetime(2024, 9, 25, 5, 0, tzinfo=datetime.timezone.utc),
  'netFlow': 9.0,
  'sortedZoneKeys': 'GB->IM',
  'source': 'elexon.co.uk',
  'sourceType': <EventSourceType.measured: 'measured'>},
 {'datetime': datetime.datetime(2024, 9, 25, 5, 30, tzinfo=datetime.timezone.utc),
  'netFlow': 9.0,
  'sortedZoneKeys': 'GB->IM',
  'source': 'elexon.co.uk',
  'sourceType': <EventSourceType.measured: 'measured'>},
 {'datetime': datetime.datetime(2024, 9, 25, 6, 0, tzinfo=datetime.timezone.utc),
  'netFlow': 13.0,
  'sortedZoneKeys': 'GB->IM',
  'source': 'elexon.co.uk',
  'sourceType': <EventSourceType.measured: 'measured'>},
 {'datetime': datetime.datetime(2024, 9, 25, 6, 30, tzinfo=datetime.timezone.utc),
  'netFlow': 15.0,
  'sortedZoneKeys': 'GB->IM',
  'source': 'elexon.co.uk',
  'sourceType': <EventSourceType.measured: 'measured'>},
 {'datetime': datetime.datetime(2024, 9, 25, 7, 0, tzinfo=datetime.timezone.utc),
  'netFlow': 18.0,
  'sortedZoneKeys': 'GB->IM',
  'source': 'elexon.co.uk',
  'sourceType': <EventSourceType.measured: 'measured'>},
 {'datetime': datetime.datetime(2024, 9, 25, 7, 30, tzinfo=datetime.timezone.utc),
  'netFlow': 21.0,
  'sortedZoneKeys': 'GB->IM',
  'source': 'elexon.co.uk',
  'sourceType': <EventSourceType.measured: 'measured'>},
 {'datetime': datetime.datetime(2024, 9, 25, 8, 0, tzinfo=datetime.timezone.utc),
  'netFlow': 24.0,
  'sortedZoneKeys': 'GB->IM',
  'source': 'elexon.co.uk',
  'sourceType': <EventSourceType.measured: 'measured'>},
 {'datetime': datetime.datetime(2024, 9, 25, 8, 30, tzinfo=datetime.timezone.utc),
  'netFlow': 26.0,
  'sortedZoneKeys': 'GB->IM',
  'source': 'elexon.co.uk',
  'sourceType': <EventSourceType.measured: 'measured'>},
 {'datetime': datetime.datetime(2024, 9, 25, 9, 0, tzinfo=datetime.timezone.utc),
  'netFlow': 28.0,
  'sortedZoneKeys': 'GB->IM',
  'source': 'elexon.co.uk',
  'sourceType': <EventSourceType.measured: 'measured'>},
 {'datetime': datetime.datetime(2024, 9, 25, 9, 30, tzinfo=datetime.timezone.utc),
  'netFlow': 28.0,
  'sortedZoneKeys': 'GB->IM',
  'source': 'elexon.co.uk',
  'sourceType': <EventSourceType.measured: 'measured'>},
 {'datetime': datetime.datetime(2024, 9, 25, 10, 0, tzinfo=datetime.timezone.utc),
  'netFlow': 29.0,
  'sortedZoneKeys': 'GB->IM',
  'source': 'elexon.co.uk',
  'sourceType': <EventSourceType.measured: 'measured'>},
 {'datetime': datetime.datetime(2024, 9, 25, 10, 30, tzinfo=datetime.timezone.utc),
  'netFlow': 29.0,
  'sortedZoneKeys': 'GB->IM',
  'source': 'elexon.co.uk',
  'sourceType': <EventSourceType.measured: 'measured'>},
 {'datetime': datetime.datetime(2024, 9, 25, 11, 0, tzinfo=datetime.timezone.utc),
  'netFlow': 30.0,
  'sortedZoneKeys': 'GB->IM',
  'source': 'elexon.co.uk',
  'sourceType': <EventSourceType.measured: 'measured'>},
 {'datetime': datetime.datetime(2024, 9, 25, 11, 30, tzinfo=datetime.timezone.utc),
  'netFlow': 29.0,
  'sortedZoneKeys': 'GB->IM',
  'source': 'elexon.co.uk',
  'sourceType': <EventSourceType.measured: 'measured'>},
 {'datetime': datetime.datetime(2024, 9, 25, 12, 0, tzinfo=datetime.timezone.utc),
  'netFlow': 29.0,
  'sortedZoneKeys': 'GB->IM',
  'source': 'elexon.co.uk',
  'sourceType': <EventSourceType.measured: 'measured'>},
 {'datetime': datetime.datetime(2024, 9, 25, 12, 30, tzinfo=datetime.timezone.utc),
  'netFlow': 29.0,
  'sortedZoneKeys': 'GB->IM',
  'source': 'elexon.co.uk',
  'sourceType': <EventSourceType.measured: 'measured'>},
 {'datetime': datetime.datetime(2024, 9, 25, 13, 0, tzinfo=datetime.timezone.utc),
  'netFlow': 29.0,
  'sortedZoneKeys': 'GB->IM',
  'source': 'elexon.co.uk',
  'sourceType': <EventSourceType.measured: 'measured'>},
 {'datetime': datetime.datetime(2024, 9, 25, 13, 30, tzinfo=datetime.timezone.utc),
  'netFlow': 30.0,
  'sortedZoneKeys': 'GB->IM',
  'source': 'elexon.co.uk',
  'sourceType': <EventSourceType.measured: 'measured'>},
 {'datetime': datetime.datetime(2024, 9, 25, 14, 0, tzinfo=datetime.timezone.utc),
  'netFlow': 30.0,
  'sortedZoneKeys': 'GB->IM',
  'source': 'elexon.co.uk',
  'sourceType': <EventSourceType.measured: 'measured'>},
 {'datetime': datetime.datetime(2024, 9, 25, 14, 30, tzinfo=datetime.timezone.utc),
  'netFlow': 30.0,
  'sortedZoneKeys': 'GB->IM',
  'source': 'elexon.co.uk',
  'sourceType': <EventSourceType.measured: 'measured'>},
 {'datetime': datetime.datetime(2024, 9, 25, 15, 0, tzinfo=datetime.timezone.utc),
  'netFlow': 31.0,
  'sortedZoneKeys': 'GB->IM',
  'source': 'elexon.co.uk',
  'sourceType': <EventSourceType.measured: 'measured'>},
 {'datetime': datetime.datetime(2024, 9, 25, 15, 30, tzinfo=datetime.timezone.utc),
  'netFlow': 33.0,
  'sortedZoneKeys': 'GB->IM',
  'source': 'elexon.co.uk',
  'sourceType': <EventSourceType.measured: 'measured'>},
 {'datetime': datetime.datetime(2024, 9, 25, 16, 0, tzinfo=datetime.timezone.utc),
  'netFlow': 35.0,
  'sortedZoneKeys': 'GB->IM',
  'source': 'elexon.co.uk',
  'sourceType': <EventSourceType.measured: 'measured'>},
 {'datetime': datetime.datetime(2024, 9, 25, 16, 30, tzinfo=datetime.timezone.utc),
  'netFlow': 36.0,
  'sortedZoneKeys': 'GB->IM',
  'source': 'elexon.co.uk',
  'sourceType': <EventSourceType.measured: 'measured'>},
 {'datetime': datetime.datetime(2024, 9, 25, 17, 0, tzinfo=datetime.timezone.utc),
  'netFlow': 36.0,
  'sortedZoneKeys': 'GB->IM',
  'source': 'elexon.co.uk',
  'sourceType': <EventSourceType.measured: 'measured'>},
 {'datetime': datetime.datetime(2024, 9, 25, 17, 30, tzinfo=datetime.timezone.utc),
  'netFlow': 35.0,
  'sortedZoneKeys': 'GB->IM',
  'source': 'elexon.co.uk',
  'sourceType': <EventSourceType.measured: 'measured'>},
 {'datetime': datetime.datetime(2024, 9, 25, 18, 0, tzinfo=datetime.timezone.utc),
  'netFlow': 36.0,
  'sortedZoneKeys': 'GB->IM',
  'source': 'elexon.co.uk',
  'sourceType': <EventSourceType.measured: 'measured'>},
 {'datetime': datetime.datetime(2024, 9, 25, 18, 30, tzinfo=datetime.timezone.utc),
  'netFlow': 36.0,
  'sortedZoneKeys': 'GB->IM',
  'source': 'elexon.co.uk',
  'sourceType': <EventSourceType.measured: 'measured'>},
 {'datetime': datetime.datetime(2024, 9, 25, 19, 0, tzinfo=datetime.timezone.utc),
  'netFlow': 35.0,
  'sortedZoneKeys': 'GB->IM',
  'source': 'elexon.co.uk',
  'sourceType': <EventSourceType.measured: 'measured'>},
 {'datetime': datetime.datetime(2024, 9, 25, 19, 30, tzinfo=datetime.timezone.utc),
  'netFlow': 33.0,
  'sortedZoneKeys': 'GB->IM',
  'source': 'elexon.co.uk',
  'sourceType': <EventSourceType.measured: 'measured'>},
 {'datetime': datetime.datetime(2024, 9, 25, 20, 0, tzinfo=datetime.timezone.utc),
  'netFlow': 31.0,
  'sortedZoneKeys': 'GB->IM',
  'source': 'elexon.co.uk',
  'sourceType': <EventSourceType.measured: 'measured'>},
 {'datetime': datetime.datetime(2024, 9, 25, 20, 30, tzinfo=datetime.timezone.utc),
  'netFlow': 28.0,
  'sortedZoneKeys': 'GB->IM',
  'source': 'elexon.co.uk',
  'sourceType': <EventSourceType.measured: 'measured'>},
 {'datetime': datetime.datetime(2024, 9, 25, 21, 0, tzinfo=datetime.timezone.utc),
  'netFlow': 24.0,
  'sortedZoneKeys': 'GB->IM',
  'source': 'elexon.co.uk',
  'sourceType': <EventSourceType.measured: 'measured'>},
 {'datetime': datetime.datetime(2024, 9, 25, 21, 30, tzinfo=datetime.timezone.utc),
  'netFlow': 20.0,
  'sortedZoneKeys': 'GB->IM',
  'source': 'elexon.co.uk',
  'sourceType': <EventSourceType.measured: 'measured'>},
 {'datetime': datetime.datetime(2024, 9, 25, 22, 0, tzinfo=datetime.timezone.utc),
  'netFlow': 17.0,
  'sortedZoneKeys': 'GB->IM',
  'source': 'elexon.co.uk',
  'sourceType': <EventSourceType.measured: 'measured'>},
 {'datetime': datetime.datetime(2024, 9, 25, 22, 30, tzinfo=datetime.timezone.utc),
  'netFlow': 13.0,
  'sortedZoneKeys': 'GB->IM',
  'source': 'elexon.co.uk',
  'sourceType': <EventSourceType.measured: 'measured'>},
 {'datetime': datetime.datetime(2024, 9, 25, 23, 0, tzinfo=datetime.timezone.utc),
  'netFlow': 15.0,
  'sortedZoneKeys': 'GB->IM',
  'source': 'elexon.co.uk',
  'sourceType': <EventSourceType.measured: 'measured'>},
 {'datetime': datetime.datetime(2024, 9, 25, 23, 30, tzinfo=datetime.timezone.utc),
  'netFlow': 14.0,
  'sortedZoneKeys': 'GB->IM',
  'source': 'elexon.co.uk',
  'sourceType': <EventSourceType.measured: 'measured'>},
 {'datetime': datetime.datetime(2024, 9, 26, 0, 0, tzinfo=datetime.timezone.utc),
  'netFlow': 12.0,
  'sortedZoneKeys': 'GB->IM',
  'source': 'elexon.co.uk',
  'sourceType': <EventSourceType.measured: 'measured'>},
 {'datetime': datetime.datetime(2024, 9, 26, 0, 30, tzinfo=datetime.timezone.utc),
  'netFlow': 12.0,
  'sortedZoneKeys': 'GB->IM',
  'source': 'elexon.co.uk',
  'sourceType': <EventSourceType.measured: 'measured'>},
 {'datetime': datetime.datetime(2024, 9, 26, 1, 0, tzinfo=datetime.timezone.utc),
  'netFlow': 9.0,
  'sortedZoneKeys': 'GB->IM',
  'source': 'elexon.co.uk',
  'sourceType': <EventSourceType.measured: 'measured'>},
 {'datetime': datetime.datetime(2024, 9, 26, 1, 30, tzinfo=datetime.timezone.utc),
  'netFlow': 9.0,
  'sortedZoneKeys': 'GB->IM',
  'source': 'elexon.co.uk',
  'sourceType': <EventSourceType.measured: 'measured'>},
 {'datetime': datetime.datetime(2024, 9, 26, 2, 0, tzinfo=datetime.timezone.utc),
  'netFlow': 9.0,
  'sortedZoneKeys': 'GB->IM',
  'source': 'elexon.co.uk',
  'sourceType': <EventSourceType.measured: 'measured'>},
 {'datetime': datetime.datetime(2024, 9, 26, 2, 30, tzinfo=datetime.timezone.utc),
  'netFlow': 9.0,
  'sortedZoneKeys': 'GB->IM',
  'source': 'elexon.co.uk',
  'sourceType': <EventSourceType.measured: 'measured'>},
 {'datetime': datetime.datetime(2024, 9, 26, 3, 0, tzinfo=datetime.timezone.utc),
  'netFlow': 9.0,
  'sortedZoneKeys': 'GB->IM',
  'source': 'elexon.co.uk',
  'sourceType': <EventSourceType.measured: 'measured'>},
 {'datetime': datetime.datetime(2024, 9, 26, 3, 30, tzinfo=datetime.timezone.utc),
  'netFlow': 9.0,
  'sortedZoneKeys': 'GB->IM',
  'source': 'elexon.co.uk',
  'sourceType': <EventSourceType.measured: 'measured'>},
 {'datetime': datetime.datetime(2024, 9, 26, 4, 0, tzinfo=datetime.timezone.utc),
  'netFlow': 9.0,
  'sortedZoneKeys': 'GB->IM',
  'source': 'elexon.co.uk',
  'sourceType': <EventSourceType.measured: 'measured'>},
 {'datetime': datetime.datetime(2024, 9, 26, 4, 30, tzinfo=datetime.timezone.utc),
  'netFlow': 9.0,
  'sortedZoneKeys': 'GB->IM',
  'source': 'elexon.co.uk',
  'sourceType': <EventSourceType.measured: 'measured'>},
 {'datetime': datetime.datetime(2024, 9, 26, 5, 0, tzinfo=datetime.timezone.utc),
  'netFlow': 9.0,
  'sortedZoneKeys': 'GB->IM',
  'source': 'elexon.co.uk',
  'sourceType': <EventSourceType.measured: 'measured'>},
 {'datetime': datetime.datetime(2024, 9, 26, 5, 30, tzinfo=datetime.timezone.utc),
  'netFlow': 9.0,
  'sortedZoneKeys': 'GB->IM',
  'source': 'elexon.co.uk',
  'sourceType': <EventSourceType.measured: 'measured'>},
 {'datetime': datetime.datetime(2024, 9, 26, 6, 0, tzinfo=datetime.timezone.utc),
  'netFlow': 13.0,
  'sortedZoneKeys': 'GB->IM',
  'source': 'elexon.co.uk',
  'sourceType': <EventSourceType.measured: 'measured'>},
 {'datetime': datetime.datetime(2024, 9, 26, 6, 30, tzinfo=datetime.timezone.utc),
  'netFlow': 15.0,
  'sortedZoneKeys': 'GB->IM',
  'source': 'elexon.co.uk',
  'sourceType': <EventSourceType.measured: 'measured'>},
 {'datetime': datetime.datetime(2024, 9, 26, 7, 0, tzinfo=datetime.timezone.utc),
  'netFlow': 18.0,
  'sortedZoneKeys': 'GB->IM',
  'source': 'elexon.co.uk',
  'sourceType': <EventSourceType.measured: 'measured'>},
 {'datetime': datetime.datetime(2024, 9, 26, 7, 30, tzinfo=datetime.timezone.utc),
  'netFlow': 21.0,
  'sortedZoneKeys': 'GB->IM',
  'source': 'elexon.co.uk',
  'sourceType': <EventSourceType.measured: 'measured'>},
 {'datetime': datetime.datetime(2024, 9, 26, 8, 0, tzinfo=datetime.timezone.utc),
  'netFlow': 24.0,
  'sortedZoneKeys': 'GB->IM',
  'source': 'elexon.co.uk',
  'sourceType': <EventSourceType.measured: 'measured'>},
 {'datetime': datetime.datetime(2024, 9, 26, 8, 30, tzinfo=datetime.timezone.utc),
  'netFlow': 26.0,
  'sortedZoneKeys': 'GB->IM',
  'source': 'elexon.co.uk',
  'sourceType': <EventSourceType.measured: 'measured'>},
 {'datetime': datetime.datetime(2024, 9, 26, 9, 0, tzinfo=datetime.timezone.utc),
  'netFlow': 28.0,
  'sortedZoneKeys': 'GB->IM',
  'source': 'elexon.co.uk',
  'sourceType': <EventSourceType.measured: 'measured'>},
 {'datetime': datetime.datetime(2024, 9, 26, 9, 30, tzinfo=datetime.timezone.utc),
  'netFlow': 28.0,
  'sortedZoneKeys': 'GB->IM',
  'source': 'elexon.co.uk',
  'sourceType': <EventSourceType.measured: 'measured'>},
 {'datetime': datetime.datetime(2024, 9, 26, 10, 0, tzinfo=datetime.timezone.utc),
  'netFlow': 29.0,
  'sortedZoneKeys': 'GB->IM',
  'source': 'elexon.co.uk',
  'sourceType': <EventSourceType.measured: 'measured'>},
 {'datetime': datetime.datetime(2024, 9, 26, 10, 30, tzinfo=datetime.timezone.utc),
  'netFlow': 29.0,
  'sortedZoneKeys': 'GB->IM',
  'source': 'elexon.co.uk',
  'sourceType': <EventSourceType.measured: 'measured'>},
 {'datetime': datetime.datetime(2024, 9, 26, 11, 0, tzinfo=datetime.timezone.utc),
  'netFlow': 30.0,
  'sortedZoneKeys': 'GB->IM',
  'source': 'elexon.co.uk',
  'sourceType': <EventSourceType.measured: 'measured'>},
 {'datetime': datetime.datetime(2024, 9, 26, 11, 30, tzinfo=datetime.timezone.utc),
  'netFlow': 29.0,
  'sortedZoneKeys': 'GB->IM',
  'source': 'elexon.co.uk',
  'sourceType': <EventSourceType.measured: 'measured'>},
 {'datetime': datetime.datetime(2024, 9, 26, 12, 0, tzinfo=datetime.timezone.utc),
  'netFlow': 29.0,
  'sortedZoneKeys': 'GB->IM',
  'source': 'elexon.co.uk',
  'sourceType': <EventSourceType.measured: 'measured'>},
 {'datetime': datetime.datetime(2024, 9, 26, 12, 30, tzinfo=datetime.timezone.utc),
  'netFlow': 29.0,
  'sortedZoneKeys': 'GB->IM',
  'source': 'elexon.co.uk',
  'sourceType': <EventSourceType.measured: 'measured'>},
 {'datetime': datetime.datetime(2024, 9, 26, 13, 0, tzinfo=datetime.timezone.utc),
  'netFlow': 29.0,
  'sortedZoneKeys': 'GB->IM',
  'source': 'elexon.co.uk',
  'sourceType': <EventSourceType.measured: 'measured'>},
 {'datetime': datetime.datetime(2024, 9, 26, 13, 30, tzinfo=datetime.timezone.utc),
  'netFlow': 30.0,
  'sortedZoneKeys': 'GB->IM',
  'source': 'elexon.co.uk',
  'sourceType': <EventSourceType.measured: 'measured'>},
 {'datetime': datetime.datetime(2024, 9, 26, 14, 0, tzinfo=datetime.timezone.utc),
  'netFlow': 30.0,
  'sortedZoneKeys': 'GB->IM',
  'source': 'elexon.co.uk',
  'sourceType': <EventSourceType.measured: 'measured'>},
 {'datetime': datetime.datetime(2024, 9, 26, 14, 30, tzinfo=datetime.timezone.utc),
  'netFlow': 30.0,
  'sortedZoneKeys': 'GB->IM',
  'source': 'elexon.co.uk',
  'sourceType': <EventSourceType.measured: 'measured'>},
 {'datetime': datetime.datetime(2024, 9, 26, 15, 0, tzinfo=datetime.timezone.utc),
  'netFlow': 31.0,
  'sortedZoneKeys': 'GB->IM',
  'source': 'elexon.co.uk',
  'sourceType': <EventSourceType.measured: 'measured'>},
 {'datetime': datetime.datetime(2024, 9, 26, 15, 30, tzinfo=datetime.timezone.utc),
  'netFlow': 33.0,
  'sortedZoneKeys': 'GB->IM',
  'source': 'elexon.co.uk',
  'sourceType': <EventSourceType.measured: 'measured'>},
 {'datetime': datetime.datetime(2024, 9, 26, 16, 0, tzinfo=datetime.timezone.utc),
  'netFlow': 35.0,
  'sortedZoneKeys': 'GB->IM',
  'source': 'elexon.co.uk',
  'sourceType': <EventSourceType.measured: 'measured'>},
 {'datetime': datetime.datetime(2024, 9, 26, 16, 30, tzinfo=datetime.timezone.utc),
  'netFlow': 36.0,
  'sortedZoneKeys': 'GB->IM',
  'source': 'elexon.co.uk',
  'sourceType': <EventSourceType.measured: 'measured'>},
 {'datetime': datetime.datetime(2024, 9, 26, 17, 0, tzinfo=datetime.timezone.utc),
  'netFlow': 36.0,
  'sortedZoneKeys': 'GB->IM',
  'source': 'elexon.co.uk',
  'sourceType': <EventSourceType.measured: 'measured'>},
 {'datetime': datetime.datetime(2024, 9, 26, 17, 30, tzinfo=datetime.timezone.utc),
  'netFlow': 35.0,
  'sortedZoneKeys': 'GB->IM',
  'source': 'elexon.co.uk',
  'sourceType': <EventSourceType.measured: 'measured'>},
 {'datetime': datetime.datetime(2024, 9, 26, 18, 0, tzinfo=datetime.timezone.utc),
  'netFlow': 36.0,
  'sortedZoneKeys': 'GB->IM',
  'source': 'elexon.co.uk',
  'sourceType': <EventSourceType.measured: 'measured'>}]
---------------------
took 0.37s
min returned datetime: 2024-09-24 23:30:00+00:00 UTC
max returned datetime: 2024-09-26 18:00:00+00:00 UTC 
WARNING:test_parser:Validation failed @ 2024-09-26 17:30:00+00:00: Data from GB->IM can't be in the future, data was 2024-09-26T17:30:00+00:00, now is 2024-09-26T17:28:23.052823+00:00
WARNING:test_parser:Validation failed @ 2024-09-26 18:00:00+00:00: Data from GB->IM can't be in the future, data was 2024-09-26T18:00:00+00:00, now is 2024-09-26T17:28:23.052899+00:00

Double check

  • I have tested my parser changes locally with poetry run test_parser "zone_key"
  • I have run pnpx prettier@2 --write . and poetry run format in the top level directory to format my changes.

@github-actions github-actions bot added parser python Pull requests that update Python code exchange config Pull request or issue for exchange configurations labels Sep 26, 2024
@github-actions github-actions bot added the zone config Pull request or issue for zone configurations label Sep 28, 2024
@VIKTORVAV99 VIKTORVAV99 marked this pull request as ready for review September 28, 2024 14:12
Copy link
Member

@FelixDQ FelixDQ left a comment

Choose a reason for hiding this comment

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

LGTM

@VIKTORVAV99 VIKTORVAV99 enabled auto-merge (squash) September 30, 2024 11:46
@VIKTORVAV99 VIKTORVAV99 merged commit 70e9a28 into master Sep 30, 2024
19 checks passed
@VIKTORVAV99 VIKTORVAV99 deleted the vik/manxlink_parser branch September 30, 2024 11:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
exchange config Pull request or issue for exchange configurations parser python Pull requests that update Python code zone config Pull request or issue for zone configurations
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ManxLink interconnector between England and Isle of Man is missing
2 participants