Skip to content

Commit

Permalink
Merge branch 'main' into make-holiday-features-configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
lschilders committed Nov 25, 2024
2 parents 9a0af0d + 4661304 commit a45903f
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/black-format-code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ jobs:
matrix:
python-version: ['3.11']

permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the
# added or changed files to the repository.
contents: write

steps:
# Checkout
- name: Checkout
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/docs-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ on:
jobs:
build:
runs-on: ubuntu-latest

permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the
# added or changed files to the repository.
contents: write

steps:
- uses: actions/setup-python@v2
- uses: actions/checkout@master
Expand Down
2 changes: 1 addition & 1 deletion openstef/validation/validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ def detect_ongoing_zero_flatliner(
"""
# remove all timestamps in the future
load = load[load.index.tz_localize(None) <= datetime.utcnow()]
latest_measurement_time = load.index.max()
latest_measurement_time = load.dropna().index.max()
latest_measurements = load[
latest_measurement_time - timedelta(minutes=duration_threshold_minutes) :
].dropna()
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def read_long_description_from_readme():

setup(
name="openstef",
version="3.4.40",
version="3.4.42",
packages=find_packages(include=["openstef", "openstef.*"]),
description="Open short term energy forecaster",
long_description=read_long_description_from_readme(),
Expand Down

0 comments on commit a45903f

Please sign in to comment.