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

fix: Change name of tmp file to ensure it is later removed

parent f619f45b
Branches
Tags
No related merge requests found
Pipeline #4024 passed
......@@ -247,7 +247,7 @@ if __name__ == "__main__":
# Ensure warning status 0 for all points on first day after model end date, mask if mask file is given
if current_file_date > model_end_date:
tmp_file = file + "tmp"
tmp_file = "tmp" + file
os.rename(file, tmp_file)
run_command(
command=f'cdo -s -aexpr,"WARNING_STATUS = 0" {tmp_file} {file}',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment