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

Issue with series_parsers and PT4S #321

Open
Xero57 opened this issue Apr 10, 2024 · 3 comments
Open

Issue with series_parsers and PT4S #321

Xero57 opened this issue Apr 10, 2024 · 3 comments

Comments

@Xero57
Copy link

Xero57 commented Apr 10, 2024

Hello,

I was unable to access Cross Border Marginal Prices for aFRR (aFRR IF 3.16) due to resolution being 4 seconds (PT4S) which is not defined in _resolution_to_timedelta in series_parser.py when using the EntsoePandasClient. The 4-second resolution is relatively new and used only for aFRR as far as I am aware.

Thank you for the great API client.

@fboerman
Copy link
Collaborator

please post a code snippit as well as a link to the transparancy platform of which data it is. Thanks!

@Xero57
Copy link
Author

Xero57 commented Apr 10, 2024

please post a code snippit as well as a link to the transparancy platform of which data it is. Thanks!

Here's the code:

client = EntsoePandasClient(api_key=api_key)

start = pd.Timestamp('202301010000', tz='Europe/Brussels')
end = pd.Timestamp('202301020000', tz='Europe/Brussels')
country_code = 'CZ'
process_type = 'A67'


ts = client.query_activated_balancing_energy_prices(country_code, 
                                                    process_type=process_type,
                                                    start=start, 
                                                    end=end)
ts.to_csv('outfile.csv')

Here is the link for the API documentation: https://documenter.getpostman.com/view/7009892/2s93JtP3F6#d8e9ac28-1687-4339-bc18-7afad2bf028c

Here is the link for the data view for the data I was looking for: https://transparency.entsoe.eu/balancing/r3/cbmpsForAfrrStandardProduct/show

Here is the article for the data on the API knowledge base: https://transparencyplatform.zendesk.com/hc/en-us/articles/12826703714452-Energy-CBMPs-for-aFRR-standard-product-aFRR-IF-3-16

I am an amateur programmer, so it is possible I simply did not understand some part of the code correctly or made a mistake and it would not work anyway for the data I wanted. Aside from that, I still could not find where the PT4S resolution type is in the code, as I did not find it hard coded with the other resolution types. So I opened an issue as was advised in the NotImplementedError.

@fboerman
Copy link
Collaborator

fboerman commented Jun 1, 2024

hi @Xero57 it seems that the response generated by this specific process type is very different from the other things. this required more custom code to deal, I dont have that much time available now.

if you want you can check the _parse_activated_balancing_energy_prices_timeseries function, put a breakpoint there and check the output that is being parsed in the for loop on what to adjust. if you succeed you can open a pull request and ill merge it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants