From da6f5edca4746976c92005b36d5b52c18ff26b8b Mon Sep 17 00:00:00 2001 From: Eli Rykoff Date: Wed, 2 Oct 2024 19:40:57 -0700 Subject: [PATCH] Clear old file if it exists. --- .../obs/lsst/script/write_non_linear_crosstalk_coeffs.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python/lsst/obs/lsst/script/write_non_linear_crosstalk_coeffs.py b/python/lsst/obs/lsst/script/write_non_linear_crosstalk_coeffs.py index 2144c6413..a7a0b25c7 100644 --- a/python/lsst/obs/lsst/script/write_non_linear_crosstalk_coeffs.py +++ b/python/lsst/obs/lsst/script/write_non_linear_crosstalk_coeffs.py @@ -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)