Commit 2e43158e authored by BO ZHANG's avatar BO ZHANG 🏀
Browse files

add log files to whitelist

parent 5c27fc90
......@@ -247,7 +247,9 @@ class CsstMsDataManager:
self.clear_dir(self.dir_l1)
# L1 whitelist
self.l1_whitelist = []
self.l1_whitelist = [
self.l1_file(name="csst-l1")
]
for detector in self.target_detectors:
if self.datatype == "mbi":
self.l1_whitelist.append(self.l1_detector(detector=detector, post="img_L1.fits"))
......@@ -263,13 +265,13 @@ class CsstMsDataManager:
self.logger_ppl = get_logger(name="CSST L1 Pipeline Logger", filename="")
else:
self.logger_ppl = get_logger(name="CSST L1 Pipeline Logger", filename=os.path.join(dir_l1, log_ppl))
self.l1_whitelist.append(log_ppl)
self.l1_whitelist.append(os.path.join(dir_l1, log_ppl))
# module logger
if log_mod == "":
self.logger_mod = get_logger(name="CSST L1 Module Logger", filename="")
else:
self.logger_mod = get_logger(name="CSST L1 Module Logger", filename=os.path.join(dir_l1, log_mod))
self.l1_whitelist.append(log_mod)
self.l1_whitelist.append(os.path.join(dir_l1, log_mod))
self.custom_bias = None
self.custom_dark = None
......
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