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

feat: Add check for existence of weather data

parent 10f8bc1a
Branches
No related tags found
No related merge requests found
......@@ -89,6 +89,11 @@ def create_dataset():
)
subprocess.run(f"rm {tmpfile_path}tmpfile.nc", shell=True)
# Ensure that model is not run if weather data is not available
if not os.path.exists(f"{tmpfile_path}weather_data.nc"):
print(f"{tmpfile_path}weather_data.nc does not exist. Exit.")
return
subprocess.run(f"rm {outtmp_path}final_*", shell=True)
create_saturation()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment