From 0c27cd2ea48f6336b7365870e5d0afc3a9b846d9 Mon Sep 17 00:00:00 2001 From: Clara De Smet <157587243+clara-de-smet@users.noreply.github.com> Date: Wed, 20 Nov 2024 17:00:34 +0100 Subject: [PATCH 1/5] fix: Flatliner detection ignores NaNs for latest measurement (#568) Signed-off-by: Clara De Smet --- openstef/validation/validation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openstef/validation/validation.py b/openstef/validation/validation.py index d635e4ac1..69e73c394 100644 --- a/openstef/validation/validation.py +++ b/openstef/validation/validation.py @@ -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() From 82fedff95510f35ddfb722b02b9b6d7ac89b2ed6 Mon Sep 17 00:00:00 2001 From: bump_version Date: Wed, 20 Nov 2024 16:17:01 +0000 Subject: [PATCH 2/5] Bumped minor version Signed-off-by: bump_version --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index de1a641cc..ff2a8f25d 100644 --- a/setup.py +++ b/setup.py @@ -29,7 +29,7 @@ def read_long_description_from_readme(): setup( name="openstef", - version="3.4.40", + version="3.4.41", packages=find_packages(include=["openstef", "openstef.*"]), description="Open short term energy forecaster", long_description=read_long_description_from_readme(), From fe0b04a002c0ab155c50cfd3f7aba918503a2b03 Mon Sep 17 00:00:00 2001 From: bump_version Date: Thu, 21 Nov 2024 07:45:10 +0000 Subject: [PATCH 3/5] Bumped minor version Signed-off-by: bump_version --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index ff2a8f25d..c84bd724b 100644 --- a/setup.py +++ b/setup.py @@ -29,7 +29,7 @@ def read_long_description_from_readme(): setup( name="openstef", - version="3.4.41", + version="3.4.42", packages=find_packages(include=["openstef", "openstef.*"]), description="Open short term energy forecaster", long_description=read_long_description_from_readme(), From dc351326c6efbe457b81ec5d77be76fd7ab843e1 Mon Sep 17 00:00:00 2001 From: Clara De Smet <157587243+clara-de-smet@users.noreply.github.com> Date: Fri, 22 Nov 2024 15:11:49 +0100 Subject: [PATCH 4/5] fix: Give write permission to github token on black formatting workflow (#570) Signed-off-by: Clara De Smet <157587243+clara-de-smet@users.noreply.github.com> --- .github/workflows/black-format-code.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/black-format-code.yml b/.github/workflows/black-format-code.yml index 0455b885c..fe606a5e9 100644 --- a/.github/workflows/black-format-code.yml +++ b/.github/workflows/black-format-code.yml @@ -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 From 46613047879d8efad774cf4e9b101c90c58b6ec2 Mon Sep 17 00:00:00 2001 From: Lars Schilders <123180911+lschilders@users.noreply.github.com> Date: Mon, 25 Nov 2024 15:20:13 +0100 Subject: [PATCH 5/5] fix: Add write permissions to GITHUB_TOKEN in workflow docs-publish.yaml (#571) Signed-off-by: Lars Schilders <123180911+lschilders@users.noreply.github.com> --- .github/workflows/docs-publish.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/docs-publish.yaml b/.github/workflows/docs-publish.yaml index 2908a66bd..5034f79d2 100644 --- a/.github/workflows/docs-publish.yaml +++ b/.github/workflows/docs-publish.yaml @@ -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