Skip to content

Commit

Permalink
chore: gh action debug
Browse files Browse the repository at this point in the history
  • Loading branch information
BlairCurrey committed Feb 6, 2024
1 parent a2bd3cd commit c78a2ce
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
9 changes: 5 additions & 4 deletions nfl_analytics/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,12 @@
def download_data(years=range(1999, 2024)):
# print("gh actions doesnt like os.makedirs with this: ", DATA_DIR_TEST)
# print("ASSET_DIR debug: ", ASSET_DIR)
# data_directory = os.path.join(THIS_DIR, DATA_DIR)
data_directory = os.path.join(THIS_DIR, DATA_DIR)
# os.makedirs(data_directory, exist_ok=True)
this_dir = Path(__file__).resolve().parent
data_directory = this_dir / DATA_DIR
data_directory.mkdir(parents=True, exist_ok=True)

# this_dir = Path(__file__).resolve().parent
# data_directory = this_dir / DATA_DIR
# data_directory.mkdir(parents=True, exist_ok=True)

for year in years:
# year gets parsed from this filename and depends on this format
Expand Down
1 change: 1 addition & 0 deletions nfl_analytics/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ def main():
else:
download_data(year_set)
else:
print("Downloading all years...")
download_data()

if args.train:
Expand Down

0 comments on commit c78a2ce

Please sign in to comment.