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

#5426 new CZ (CEPS) parser is missing pumping demand for pumped hydro #5473

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

Frantisek12
Copy link
Contributor

@Frantisek12 Frantisek12 commented Jun 16, 2023

Issue

Fixes: #5426

Description

fetch_consumption added and used to obtain pumping demand. fetch_consumption() not replaced in configuration for entsoe. Could be done if the format is correct. Please check

Preview

Double check

  • I have tested my parser changes locally with poetry run test_parser "zone_key"
  • I have run pnpx prettier --write . and poetry run format to format my changes.

@VIKTORVAV99 VIKTORVAV99 self-assigned this Feb 7, 2024
@github-actions github-actions bot added the python Pull requests that update Python code label Feb 7, 2024
Copy link
Member

@VIKTORVAV99 VIKTORVAV99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for taking so long with this, that's on me, but there are a lot of type errors and undocumented logic at work here. I don't think we can merge it as is.

Comment on lines +100 to +104
data_tag = xml.find("data")
data_list: List[dict] = []

if data_tag is not None:
for values in data_tag:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This whole looping over xml elements is filled with type errors. Not sure we can merge it as is.

Comment on lines +107 to +109
consumption_with_pumping = float(values["value1"])
consumption = float(values["value2"])
date_time = values["date"]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Causing several issues here.

@@ -68,6 +68,71 @@ def get_target_datetime(dt: datetime | None) -> datetime:
return dt


def fetch_consumption(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should not be named fetch_consumption if it don't return the expected consumption element.

Should be renamed to get_consumption

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
parser python Pull requests that update Python code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Data Issue]: new CZ (CEPS) parser is missing pumping demand for pumped hydro
2 participants