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

do not generate log file by default

parent d06b0a5c
......@@ -83,7 +83,7 @@ class CsstMsDataManager:
Use "pml" for Purple Mountain Lab cluster and "local" for others.
dfs_root : str
The DFS root path.
obs_id : int
obs_id : str
The exposure ID.
exp_start : int
The exposure start time in ``yyyymmddhhmmss`` format.
......@@ -152,8 +152,8 @@ class CsstMsDataManager:
_survey: str = "MS",
obs_type: str = "SCI",
l0_post: str = "L0_1",
log_ppl="csst-l1ppl.log",
log_mod="csst-l1mod.log",
log_ppl=None,
log_mod=None,
clear_dir=False,
verbose=True,
n_jobs=18,
......@@ -231,13 +231,15 @@ class CsstMsDataManager:
self.clear_dir(self.dir_l1)
# pipeline logger
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")
if log_ppl is not None:
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
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")
if log_mod is not None:
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