Skip to content

Commit

Permalink
Upgrade IE parser to ParserFunctions (#6042)
Browse files Browse the repository at this point in the history
* WIP upgrade parser functions

* upgrade production

* Add total generation

* add consumption test

* fix

* Add more tests

* Fix exception handling in SMARTGRIDDASHBOARD.py

* temp rename of parser file

* switch back in yaml files

* add missing dots

* format

* rename function and parser

---------

Co-authored-by: Florian Scheidl <36441589+florianscheidl@users.noreply.github.com>
  • Loading branch information
VIKTORVAV99 and florianscheidl committed Jan 14, 2024
1 parent 82cb589 commit 78a2b61
Show file tree
Hide file tree
Showing 13 changed files with 8,135 additions and 281 deletions.
2 changes: 1 addition & 1 deletion config/exchanges/GB_GB-NIR.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ lonlat:
- -5.428149
- 54.87826
parsers:
exchange: IE.fetch_exchange
exchange: SMARTGRIDDASHBOARD.fetch_exchange
rotation: -110
9 changes: 5 additions & 4 deletions config/zones/GB-NIR.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -229,11 +229,12 @@ fallbackZoneMixes:
unknown: 0.0
wind: 0.34781314616395964
parsers:
consumption: IE.fetch_consumption
consumptionForecast: IE.fetch_consumption_forecast
consumption: SMARTGRIDDASHBOARD.fetch_consumption
consumptionForecast: SMARTGRIDDASHBOARD.fetch_consumption_forecast
price: ENTSOE.fetch_price
production: IE.fetch_production
productionPerModeForecast: IE.fetch_wind_forecasts
production: SMARTGRIDDASHBOARD.fetch_production
productionPerModeForecast: SMARTGRIDDASHBOARD.fetch_wind_forecasts
generationForecast: SMARTGRIDDASHBOARD.fetch_total_generation
sources:
UNECE 2022:
link: https://unece.org/sites/default/files/2022-04/LCA_3_FINAL%20March%202022.pdf
Expand Down
9 changes: 5 additions & 4 deletions config/zones/IE.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -287,12 +287,13 @@ fallbackZoneMixes:
unknown: 0.004263137731402132
wind: 0.38492285644272295
parsers:
consumption: IE.fetch_consumption
consumptionForecast: IE.fetch_consumption_forecast
consumption: SMARTGRIDDASHBOARD.fetch_consumption
consumptionForecast: SMARTGRIDDASHBOARD.fetch_consumption_forecast
price: ENTSOE.fetch_price
production: IE.fetch_production
production: SMARTGRIDDASHBOARD.fetch_production
productionCapacity: ENTSOE.fetch_production_capacity
productionPerModeForecast: IE.fetch_wind_forecasts
productionPerModeForecast: SMARTGRIDDASHBOARD.fetch_wind_forecasts
generationForecast: SMARTGRIDDASHBOARD.fetch_total_generation
sources:
EU-ETS, ENTSO-E 2021:
link: https://drive.google.com/file/d/15UeUHyhcjVw8fGLc0Zx_HELSx20cw_-e/view?usp=share_link
Expand Down
272 changes: 0 additions & 272 deletions parsers/IE.py

This file was deleted.

Loading

0 comments on commit 78a2b61

Please sign in to comment.