From 00f96e1bf785116e850c7dc1abfbc62025b90c1d Mon Sep 17 00:00:00 2001 From: Lene Wasskog <lene.wasskog@nibio.no> Date: Thu, 27 Feb 2025 13:08:57 +0100 Subject: [PATCH] chore: Remove unused variable --- NAERSTADMO.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/NAERSTADMO.py b/NAERSTADMO.py index cdaba88..57cd23a 100644 --- a/NAERSTADMO.py +++ b/NAERSTADMO.py @@ -78,8 +78,6 @@ bg_filename = f"{tmpfile_path}background_data.nc" tmp_filename = f"{tmpfile_path}background_data_tmp.nc" prepareWHS = f"{tmpfile_path}prepare_WHS.nc" -utc_offset = "+02:00" - filename = f"{tmpfile_path}weather_data.nc" def create_dataset(): @@ -115,14 +113,13 @@ def create_dataset(): file_date = file_name[ file_name.index("nordic-") + 7 : file_name.index("nordic-") + 17 ] - logging.info(f"Work on date {file_date}") - end_date = None end_date = start_date + timedelta(days=5) if file_date >= start_date.strftime( "%Y-%m-%d" ) and file_date <= end_date.strftime("%Y-%m-%d"): + logging.info(f"Work on date {file_date}") if not os.path.exists(f"{tmpfile_path}weather_data.nc"): subprocess.run(f"cp {file} {tmpfile_path}weather_data.nc", shell=True) else: -- GitLab