tolerate overlapping time series for imbalance volumes - #465
Conversation
|
I ran into this problem but did not take the time to study it fully yet, but I saw that there are overlapping values because in the .zip there are two files, one with docStatus A01 and one with docStatus A02. |
If that is the case, I agree. Will try to propose a fix. |
|
Thanks @colingrd. I just checked with the query/response linked in the initial post. In there, we have overlapping time series within a single Nevertheless, the issue mentioned by @colingrd (overlaps with different |
|
hi thanks for this! could you perhaps provide a code snippit which showcases what it fixes? |
|
Thanks for considering @fboerman. The following snippet fails without and succeeds with the fix from this PR. from entsoe import EntsoePandasClient
import pandas as pd
client = EntsoePandasClient(api_key='…')
client.query_imbalance_volumes(
'EE',
start=pd.Timestamp('202510222100', tz='Europe/Berlin'),
end=pd.Timestamp('202510232100', tz='Europe/Berlin'),
) |
|
hi @lpirl sorry for the late reply. do I understand it correctly that this is only an issue for certain zones then? can you please rebase the PR? |
9305ab6 to
65ce053
Compare
From what I recall, yes, it happened in zones where data with the properties described above has been returned only.
Done. |
Querying imbalance volumes [1] can lead to a stack trace [2] if responded time series overlap [3].
This PR presents my hotfix for the issue. I am neither sure if this is semantically correct, nor if this the pandas way to do it.
Feel free to reference and close this PR in favor of a more conventional fix.
[1] query
https://web-api.tp.entsoe.eu/api?documentType=A86&controlArea_Domain=10Y1001A1001A39I&periodStart=202510222100&periodEnd=202510232100&securityToken=…[2] stack trace
[3] response
Search for quantities
15.123and2.897: