OSUKED / ElexonDataPortal

Python wrapper for the Elexon/BMRS API
https://osuked.github.io/ElexonDataPortal
MIT License
52 stars 14 forks source link

Daylights saving issue in creation of available settlement periods? #29

Open GrahamMore opened 9 months ago

GrahamMore commented 9 months ago

When trying to download data for 29 October 2023, I noticed it is only fetching 48 settlement periods, rather than the 50 that are quoted in the BMRS: image

It looks like updating this line in dt_rng_to_SPs to their only use UK+DST would correct the issue, but I'm not entirely clear if there are any other requests within the package that use the tz input parameter more flexibly. dt_rng = pd.date_range(extended_start_date, extended_end_date, freq=freq, tz='**Europe/London**')

Any thoughts on cleanest way to update this?