From d5632463198591f1d623c355b02e9f7f3ae514b4 Mon Sep 17 00:00:00 2001 From: BO ZHANG Date: Mon, 20 Feb 2023 21:39:21 +0800 Subject: [PATCH] add performance files to whitelist --- csst_common/data_manager.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/csst_common/data_manager.py b/csst_common/data_manager.py index 8e95261..4b8d9c3 100644 --- a/csst_common/data_manager.py +++ b/csst_common/data_manager.py @@ -247,9 +247,7 @@ class CsstMsDataManager: self.clear_dir(self.dir_l1) # L1 whitelist - self.l1_whitelist = [ - self.l1_file(name="csst-l1") - ] + self.l1_whitelist = [self.l1_file(name="mrs.csv"), ] for detector in self.target_detectors: if self.datatype == "mbi": self.l1_whitelist.append(self.l1_detector(detector=detector, post="img_L1.fits")) @@ -278,11 +276,13 @@ class CsstMsDataManager: self.custom_flat = None self.stamps = stamps + if self.stamps != "": + self.l1_whitelist.append(self.l1_file(self.stamps)) self.write_stamp() def write_stamp(self): - if self.stamps is not None and not self.stamps == "": - with open(self.stamps, "a+") as f: + if self.stamps is not None and self.stamps != "": + with open(self.l1_file(self.stamps), "a+") as f: f.write(f"{time.Time.now().isot.replace('.', ',')}+0800\n") @staticmethod -- GitLab