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

+if clause for _query_imbalance in decorators #296

Merged
merged 1 commit into from
Jan 31, 2024

Conversation

awarsewa
Copy link
Contributor

This fixes the issue that unavailability entries are discarded because of duplicate removal in the decorators by adding an if-clause to restrict duplicate removal to all wrapped functions other than _query_imbalance.

To test, try the following code with and without this change:

from entsoe import EntsoePandasClient
import pandas as pd
import pytz
import os

start = pd.Timestamp(2024, 1, 1, tzinfo=pytz.timezone('Europe/Berlin'))
end = pd.Timestamp(2024, 1, 14, tzinfo=pytz.timezone('Europe/Berlin'))

client = EntsoePandasClient(api_key=os.getenv('ENTSOE_API_KEY'))
df = client.query_unavailability_of_generation_units('DE_LU', start=start,end=end, docstatus='A05')

Also fixes an issue with the aggregated_bids parsing function for querying TSO data that does not include activated volumes.

+bugfix parse_aggregated_bids
@fboerman
Copy link
Collaborator

looks good many thanks for this PR and the detailed test code!

@fboerman fboerman merged commit ef6f5fc into EnergieID:master Jan 31, 2024
fleimgruber pushed a commit to fleimgruber/entsoe-py that referenced this pull request May 14, 2024
+if clause for _query_imbalance in decorators
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants