Skip to content

Commit

Permalink
fix directory structure
Browse files Browse the repository at this point in the history
  • Loading branch information
nikosbosse committed Nov 27, 2024
1 parent 19a0b42 commit 73eeac1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/submit-flu-forecasts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,14 @@ jobs:
python -m pip install --upgrade pip
pip install requests pandas numpy
- name: Create required directories
run: |
mkdir -p flu/submissions
- name: Run flu forecasting script
run: python flu/run-flu-forecasts.py
env:
PYTHONPATH: ${{ github.workspace }}/2024-25
PYTHONPATH: ${{ github.workspace }}

- name: Fork and clone target repository
run: |
Expand All @@ -49,7 +53,7 @@ jobs:
mkdir -p model-output/metac-cp
# Copy new forecasts
cp -r ../submissions/* model-output/metac-cp/
cp -r flu/submissions/* model-output/metac-cp/
- name: Create Pull Request
run: |
Expand Down
4 changes: 2 additions & 2 deletions flu/run-flu-forecasts.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import requests
from datetime import datetime, timedelta
import pandas as pd
from ..utils import internal_to_actual
from utils import internal_to_actual
import numpy as np

question_id = 30048
Expand Down Expand Up @@ -115,5 +115,5 @@
]

forecasts_df_full.to_csv(
f"submissions/{origin_date}-metac-cp.csv", index=False
f"flu/submissions/{origin_date}-metac-cp.csv", index=False
)

0 comments on commit 73eeac1

Please sign in to comment.