From dcec9b69214516aeab3eb67725581f6f07a8dd4b Mon Sep 17 00:00:00 2001 From: cantoyu <92871091+cantoyu@users.noreply.github.com> Date: Thu, 8 Feb 2024 15:14:19 +0000 Subject: [PATCH] Updated parser unavailability generation unit Fixed the mismatched unit name issue in unavailability_gen_ts and added the unit psr name --- entsoe/parsers.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/entsoe/parsers.py b/entsoe/parsers.py index 309915f..eb07205 100644 --- a/entsoe/parsers.py +++ b/entsoe/parsers.py @@ -816,6 +816,7 @@ def _parse_crossborder_flows_timeseries(soup): 'curvetype', 'production_resource_id', 'production_resource_name', + 'production_resource_psr_name', 'production_resource_location', 'plant_type', 'nominal_power', @@ -852,6 +853,7 @@ def _unavailability_gen_ts(soup: bs4.BeautifulSoup) -> list: get_attr('curvetype'), get_attr('production_registeredresource.mrid'), get_attr('production_registeredresource.name'), + get_attr('production_registeredresource.psrtype.powersystemresources.name'), get_attr('production_registeredresource.location.name'), PSRTYPE_MAPPINGS.get(get_attr( 'production_registeredresource.psrtype.psrtype'), ""),