Commit d5632463 authored by BO ZHANG's avatar BO ZHANG 🏀
Browse files

add performance files to whitelist

parent 2e43158e
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment