From 84b7f98290a4910405ca67a44bc49dbc8fd92c23 Mon Sep 17 00:00:00 2001 From: Matthew Duffin Date: Fri, 9 Aug 2024 22:34:20 +0100 Subject: [PATCH 1/3] fix latitude --- .github/workflows/publish.yaml | 6 ++++-- quartz_solar_forecast/utils/hf_upload.py | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 775ace75..63a8cd29 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -1,6 +1,9 @@ name: Run forecast on: + push: + branches: + - topic/fix-paths schedule: - cron: "0 9 * * *" @@ -27,6 +30,5 @@ jobs: HF_TOKEN: ${{ secrets.HF_TOKEN_PUSH }} HF_REPO: ${{ secrets.HF_REPO }} run: | - cd scripts - python hf_upload.py + python quartz_solar_forecast/utils/hf_upload.py diff --git a/quartz_solar_forecast/utils/hf_upload.py b/quartz_solar_forecast/utils/hf_upload.py index 7fcf4a0e..35cdc1af 100644 --- a/quartz_solar_forecast/utils/hf_upload.py +++ b/quartz_solar_forecast/utils/hf_upload.py @@ -20,7 +20,7 @@ def get_file_path(latitude: float, login(hf_token) fs = HfFileSystem() now = datetime.utcnow() - latitude = 51.59, + latitude = 51.59 longitude = -1.89 capacity_kwp = 4 From ecb39bce5eddd3d33e1c11361c66a83586619edb Mon Sep 17 00:00:00 2001 From: Matthew Duffin Date: Fri, 9 Aug 2024 22:47:19 +0100 Subject: [PATCH 2/3] empty From e7b94c3b7622051dd36cc18e03e1e486e9b8946e Mon Sep 17 00:00:00 2001 From: Matthew Duffin Date: Fri, 9 Aug 2024 22:55:50 +0100 Subject: [PATCH 3/3] remove test push trigger --- .github/workflows/publish.yaml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 63a8cd29..bd4416cf 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -1,9 +1,6 @@ name: Run forecast on: - push: - branches: - - topic/fix-paths schedule: - cron: "0 9 * * *"