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
e4da9336
Commit
e4da9336
authored
Jan 10, 2023
by
BO ZHANG
🏀
Browse files
do not generate log file by default
parent
d06b0a5c
Changes
1
Hide whitespace changes
Inline
Side-by-side
csst_common/data_manager.py
View file @
e4da9336
...
...
@@ -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
...
...
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