EnergieID / entsoe-py

Python client for the ENTSO-E API (european network of transmission system operators for electricity)
MIT License
428 stars 188 forks source link

Query query_unavailability_of_generation_units returns mismatching unit names #304

Closed cantoyu closed 8 months ago

cantoyu commented 9 months ago

When running function query_unavailability_of_generation_units, the returned unit names under column production_resource_name does not match with ENTSOE UI webpage

Did some de-bug, in the XML returned, there are two items that are considered as unit name - and , what ENTSOE UI is displaying (and if you are mapping against individual unit but not site like me), is the latter

To solve this, go to parser module and find _unavailability_gen_ts, above it add another column name (whatever you want to call it), and add another get_attr and put get_attr('production_registeredresource.psrtype.powersystemresources.name')

Now the new script should return both unit name that matched with the UI and also the site name image

fboerman commented 9 months ago

hi @cantoyu thanks for this report. your fix sounds good! Could you please make a pullrequest for it? Thanks!

fboerman commented 8 months ago

pr provided and merged so closing this