diff --git a/nfl_analytics/data.py b/nfl_analytics/data.py index cac382d..86260be 100644 --- a/nfl_analytics/data.py +++ b/nfl_analytics/data.py @@ -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 diff --git a/nfl_analytics/main.py b/nfl_analytics/main.py index 62098ae..5ffce8d 100644 --- a/nfl_analytics/main.py +++ b/nfl_analytics/main.py @@ -66,6 +66,7 @@ def main(): else: download_data(year_set) else: + print("Downloading all years...") download_data() if args.train: