Skip to content
Snippets Groups Projects
Commit 00f96e1b authored by Lene Wasskog's avatar Lene Wasskog
Browse files

chore: Remove unused variable

parent bea7a921
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment