Commit 78a17d26 authored by BO ZHANG's avatar BO ZHANG 🏀
Browse files

default log_ppl and log_mod to ""

parent 6e7c4c33
......@@ -156,8 +156,8 @@ class CsstMsDataManager:
_survey: str = "MS",
obs_type: str = "SCI",
l0_post: str = "L0_1",
log_ppl=None,
log_mod=None,
log_ppl="",
log_mod="",
clear_dir=False,
verbose=True,
n_jobs=18,
......@@ -238,15 +238,15 @@ class CsstMsDataManager:
self.clear_dir(self.dir_l1)
# pipeline logger
if log_ppl is not None:
if log_ppl == "":
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))
if verbose:
self.logger_ppl.info("logger_ppl initialized")
# module logger
if log_mod is not None:
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))
if verbose:
self.logger_mod.info("logger_mod initialized")
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