Skip to content

Commit

Permalink
fixed issue with resampling with nan values
Browse files Browse the repository at this point in the history
added DK_1 to GB neighbours after go live of viking link (#308)
fixed merging strategy for utility function for load forecast and actual (#307)
  • Loading branch information
fboerman committed Feb 21, 2024
1 parent 4c13443 commit ee9bfd1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions entsoe/entsoe.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
warnings.filterwarnings('ignore', category=XMLParsedAsHTMLWarning)

__title__ = "entsoe-py"
__version__ = "0.6.6"
__version__ = "0.6.7"
__author__ = "EnergieID.be, Frank Boerman"
__license__ = "MIT"

Expand Down Expand Up @@ -1259,7 +1259,7 @@ def query_load_and_forecast(
"""
df_load_forecast_da = self.query_load_forecast(country_code, start=start, end=end)
df_load = self.query_load(country_code, start=start, end=end)
return df_load_forecast_da.join(df_load, sort=True, how='inner')
return df_load_forecast_da.join(df_load, sort=True, how='outer')


@year_limited
Expand Down Expand Up @@ -2139,7 +2139,7 @@ def query_physical_crossborder_allborders(self, country_code: Union[Area, str],
df = df.truncate(before=start, after=end)
df['sum'] = df.sum(axis=1)
if per_hour:
df = df.resample('h').mean()
df = df.resample('h').first()

return df

Expand Down
2 changes: 1 addition & 1 deletion entsoe/mappings.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ def code(self):
'CH': ['AT', 'DE_AT_LU', 'DE_LU', 'FR', 'IT_NORD', 'IT_NORD_CH'],
'AT': ['CH', 'CZ', 'DE_LU', 'HU', 'IT_NORD', 'SI'],
'CZ': ['AT', 'DE_AT_LU', 'DE_LU', 'PL', 'SK'],
'GB': ['BE', 'FR', 'IE_SEM', 'NL', 'NO_2'],
'GB': ['BE', 'FR', 'IE_SEM', 'NL', 'NO_2', 'DK_1'],
'NO_2': ['DE_LU', 'DK_1', 'NL', 'NO_1', 'NO_5', 'GB'],
'HU': ['AT', 'HR', 'RO', 'RS', 'SK', 'UA'],
'IT_NORD': ['CH', 'DE_AT_LU', 'FR', 'SI', 'AT', 'IT_CNOR'],
Expand Down

1 comment on commit ee9bfd1

@mariaolzai
Copy link

Choose a reason for hiding this comment

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

hi, can you also set GB in the list of neighbours of DK_1 (line 293)

Please sign in to comment.