Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
csst-pipeline
csst_common
Commits
78a17d26
Commit
78a17d26
authored
Jan 20, 2023
by
BO ZHANG
🏀
Browse files
default log_ppl and log_mod to ""
parent
6e7c4c33
Changes
1
Show whitespace changes
Inline
Side-by-side
csst_common/data_manager.py
View file @
78a17d26
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment