Skip to content

Commit

Permalink
fix: make data download path abs
Browse files Browse the repository at this point in the history
- maybe fix train error in ci
  • Loading branch information
BlairCurrey committed Feb 6, 2024
1 parent e1bb16b commit 6c7af28
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/train-spread-predictor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: Install dependencies with Poetry
run: poetry install

- name: Run Python script
- name: Download data and train model
run: |
ls -a
cd $GITHUB_WORKSPACE
Expand Down
3 changes: 2 additions & 1 deletion nfl_analytics/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,14 @@
import pandas as pd

from nfl_analytics.config import (
DATA_DIR,
DATA_DIR as DATA_DIR_,
ASSET_DIR as ASSET_DIR_,
)


THIS_DIR = os.path.dirname(os.path.abspath(__file__))
ASSET_DIR = os.path.join(THIS_DIR, ASSET_DIR_)
DATA_DIR = os.path.join(THIS_DIR, DATA_DIR_)


def download_data(years=range(1999, 2024)):
Expand Down

0 comments on commit 6c7af28

Please sign in to comment.