From 2e5e66a6c294ea8293bc33d3e44c67668d6acbb7 Mon Sep 17 00:00:00 2001 From: Lene Wasskog <lene.wasskog@nibio.no> Date: Thu, 27 Feb 2025 09:41:03 +0100 Subject: [PATCH] fix: Ensure correct weather data path is used --- SEPTREFHUM.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/SEPTREFHUM.py b/SEPTREFHUM.py index c704d26..3f2e171 100755 --- a/SEPTREFHUM.py +++ b/SEPTREFHUM.py @@ -98,6 +98,7 @@ else: weather_data_path = infile_path if year < today.year: weather_data_path = f"{infile_archive_path}{year}/" +logging.info(f"Use weather data from {weather_data_path}") # Path to store intermediary calculations and generated results tmpfile_path = f"tmp/{year}/" @@ -123,8 +124,8 @@ if last_wh_date is not None: start_date = last_wh_date - timedelta(days=2) logging.info(f"Last date of WH calculations is {last_wh_date}. Start date = {start_date}") -weatherdata_files = glob.glob(f"{infile_path}{filename_pattern}") -logging.debug(f"{infile_path}{filename_pattern}") +weatherdata_files = glob.glob(f"{weather_data_path}{filename_pattern}") +logging.debug(f"{weather_data_path}{filename_pattern}") logging.debug("What are the weatherdata files?") logging.debug(weatherdata_files) -- GitLab