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

inconsistent results of EntsoePandasClient.query_installed_generation_capacity() #329

Open
mkaut opened this issue May 2, 2024 · 1 comment

Comments

@mkaut
Copy link

mkaut commented May 2, 2024

I am getting strange results from EntsoePandasClient.query_installed_generation_capacity(), when trying to find the development of installed production capacity from 2019:

client.query_installed_generation_capacity('DK_1', start=pd.Timestamp('20190101', tz='Europe/Brussels'), 
end=pd.Timestamp('20240101', tz='Europe/Brussels'))

returns

                           Biomass  Fossil Gas  Fossil Hard coal  Fossil Oil  Hydro Run-of-river and poundage  Other renewable  Solar  Waste  Wind Offshore  Wind Onshore
2019-01-01 00:00:00+01:00    693.0      1151.0            1915.0       208.0                              7.0            111.0  672.0  211.0         1277.0        3669.0

In other words, I get only one date.

However, changing the start date one day forward:

client.query_installed_generation_capacity(country_code, start=pd.Timestamp('20190102', tz='Europe/Brussels'), end=pd.Timestamp('20240101', tz='Europe/Brussels'))

returns

                           Biomass  Fossil Gas  Fossil Hard coal  Fossil Oil  Hydro Run-of-river and poundage  Other renewable   Solar  Waste  Wind Offshore  Wind Onshore
2019-01-01 00:00:00+01:00    693.0      1151.0            1915.0       208.0                              7.0            111.0   672.0  211.0         1277.0        3669.0
2020-01-01 00:00:00+01:00    694.0      1119.0            1915.0       210.0                              7.0            112.0   672.0  211.0         1277.0        3645.0
2021-01-01 00:00:00+01:00    695.0      1049.0            1943.0       211.0                              7.0            117.0   878.0  211.0         1277.0        3725.0
2022-01-01 00:00:00+01:00    691.0      1018.0            1943.0       196.0                              7.0            113.0  1086.0  211.0         1277.0        3888.0
2023-01-01 00:00:00+01:00    691.0       991.0            1943.0       195.0                              5.0            112.0  1702.0  211.0         1278.0        3955.0

Note that I not only get more data, but I also get the 2019-01-01 values which are now outside of the time interval.

Is this a bug, or is this expected behaviour (and if so, why)?

@fboerman
Copy link
Collaborator

fboerman commented Jun 1, 2024

okay thats pretty weird indeed @mkaut did you check the xml output if it also occurs there?

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

No branches or pull requests

2 participants