Loading csst_common/data_manager.py +5 −5 Original line number Original line Diff line number Diff line Loading @@ -247,9 +247,7 @@ class CsstMsDataManager: self.clear_dir(self.dir_l1) self.clear_dir(self.dir_l1) # L1 whitelist # L1 whitelist self.l1_whitelist = [ self.l1_whitelist = [self.l1_file(name="mrs.csv"), ] self.l1_file(name="csst-l1") ] for detector in self.target_detectors: for detector in self.target_detectors: if self.datatype == "mbi": if self.datatype == "mbi": self.l1_whitelist.append(self.l1_detector(detector=detector, post="img_L1.fits")) self.l1_whitelist.append(self.l1_detector(detector=detector, post="img_L1.fits")) Loading Loading @@ -278,11 +276,13 @@ class CsstMsDataManager: self.custom_flat = None self.custom_flat = None self.stamps = stamps self.stamps = stamps if self.stamps != "": self.l1_whitelist.append(self.l1_file(self.stamps)) self.write_stamp() self.write_stamp() def write_stamp(self): def write_stamp(self): if self.stamps is not None and not self.stamps == "": if self.stamps is not None and self.stamps != "": with open(self.stamps, "a+") as f: with open(self.l1_file(self.stamps), "a+") as f: f.write(f"{time.Time.now().isot.replace('.', ',')}+0800\n") f.write(f"{time.Time.now().isot.replace('.', ',')}+0800\n") @staticmethod @staticmethod Loading Loading
csst_common/data_manager.py +5 −5 Original line number Original line Diff line number Diff line Loading @@ -247,9 +247,7 @@ class CsstMsDataManager: self.clear_dir(self.dir_l1) self.clear_dir(self.dir_l1) # L1 whitelist # L1 whitelist self.l1_whitelist = [ self.l1_whitelist = [self.l1_file(name="mrs.csv"), ] self.l1_file(name="csst-l1") ] for detector in self.target_detectors: for detector in self.target_detectors: if self.datatype == "mbi": if self.datatype == "mbi": self.l1_whitelist.append(self.l1_detector(detector=detector, post="img_L1.fits")) self.l1_whitelist.append(self.l1_detector(detector=detector, post="img_L1.fits")) Loading Loading @@ -278,11 +276,13 @@ class CsstMsDataManager: self.custom_flat = None self.custom_flat = None self.stamps = stamps self.stamps = stamps if self.stamps != "": self.l1_whitelist.append(self.l1_file(self.stamps)) self.write_stamp() self.write_stamp() def write_stamp(self): def write_stamp(self): if self.stamps is not None and not self.stamps == "": if self.stamps is not None and self.stamps != "": with open(self.stamps, "a+") as f: with open(self.l1_file(self.stamps), "a+") as f: f.write(f"{time.Time.now().isot.replace('.', ',')}+0800\n") f.write(f"{time.Time.now().isot.replace('.', ',')}+0800\n") @staticmethod @staticmethod Loading