EnergieID / entsoe-py

Python client for the ENTSO-E API (european network of transmission system operators for electricity)
MIT License
423 stars 186 forks source link

client.query_installed_generation_capacity not working as expected #17

Closed wes3985 closed 5 years ago

wes3985 commented 5 years ago

Hi, the above function seems to be not returning the expected data. here is my code:

from entsoe import EntsoePandasClient
import pandas as pd
entsoe_api_key = 'my_key'
client = EntsoePandasClient(api_key=entsoe_api_key)
st = pd.Timestamp('20170101', tz='Europe/Brussels')
en = pd.Timestamp('20170601', tz='Europe/Brussels')
cc = 'DE' # Germany
igc = client.query_installed_generation_capacity(country_code=cc, start=st, end=en)
print(igc)

returns only a single line from 2017-01-01, I have tried with many date combinations, it always returns the first date in the range and no other dates? Many thanks

JrtPec commented 5 years ago

In what way is it not the expected data?

If I do the same lookup on the Entso-e Transparency Platform, I also just get a single value per year.

wes3985 commented 5 years ago

ah my apologies, I was expecting a line whenever capacity changed throughout the year, e.g a new windfarm coming online. No worries, many thanks for your very quick response.