Skip to content

Commit

Permalink
Clear old file if it exists.
Browse files Browse the repository at this point in the history
  • Loading branch information
erykoff committed Oct 3, 2024
1 parent eeeff95 commit da6f5ed
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,9 @@
detector=detector,
setCalibId=True,
setCalibInfo=True,
setDate=False,
setDate=True,
)
cc.metadata["CALIBDATE"] = valid_start
if os.path.isfile(out_file):
os.remove(out_file)
cc.writeText(out_file)

0 comments on commit da6f5ed

Please sign in to comment.