Skip to content

Commit

Permalink
make sure to sort index from splitted blocks of day ahead prices befo…
Browse files Browse the repository at this point in the history
…re truncating
  • Loading branch information
fboerman committed Oct 22, 2024
1 parent 6b3efa5 commit 2b319b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 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.13"
__version__ = "0.6.14"
__author__ = "EnergieID.be, Frank Boerman"
__license__ = "MIT"

Expand Down Expand Up @@ -1231,7 +1231,7 @@ def query_day_ahead_prices(
end=end+pd.Timedelta(days=1),
resolution=resolution
)
series = series.tz_convert(area.tz)
series = series.tz_convert(area.tz).sort_index()
series = series.truncate(before=start, after=end)
# because of the above fix we need to check again if any valid data exists after truncating
if len(series) == 0:
Expand Down

0 comments on commit 2b319b1

Please sign in to comment.