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
Show whitespace changes
Inline
Side-by-side
csst_common/data_manager.py
View file @
e4da9336
...
@@ -83,7 +83,7 @@ class CsstMsDataManager:
...
@@ -83,7 +83,7 @@ class CsstMsDataManager:
Use "pml" for Purple Mountain Lab cluster and "local" for others.
Use "pml" for Purple Mountain Lab cluster and "local" for others.
dfs_root : str
dfs_root : str
The DFS root path.
The DFS root path.
obs_id :
int
obs_id :
str
The exposure ID.
The exposure ID.
exp_start : int
exp_start : int
The exposure start time in ``yyyymmddhhmmss`` format.
The exposure start time in ``yyyymmddhhmmss`` format.
...
@@ -152,8 +152,8 @@ class CsstMsDataManager:
...
@@ -152,8 +152,8 @@ class CsstMsDataManager:
_survey
:
str
=
"MS"
,
_survey
:
str
=
"MS"
,
obs_type
:
str
=
"SCI"
,
obs_type
:
str
=
"SCI"
,
l0_post
:
str
=
"L0_1"
,
l0_post
:
str
=
"L0_1"
,
log_ppl
=
"csst-l1ppl.log"
,
log_ppl
=
None
,
log_mod
=
"csst-l1mod.log"
,
log_mod
=
None
,
clear_dir
=
False
,
clear_dir
=
False
,
verbose
=
True
,
verbose
=
True
,
n_jobs
=
18
,
n_jobs
=
18
,
...
@@ -231,10 +231,12 @@ class CsstMsDataManager:
...
@@ -231,10 +231,12 @@ class CsstMsDataManager:
self
.
clear_dir
(
self
.
dir_l1
)
self
.
clear_dir
(
self
.
dir_l1
)
# pipeline logger
# pipeline logger
if
log_ppl
is
not
None
:
self
.
logger_ppl
=
get_logger
(
name
=
"CSST L1 Pipeline Logger"
,
filename
=
os
.
path
.
join
(
dir_l1
,
log_ppl
))
self
.
logger_ppl
=
get_logger
(
name
=
"CSST L1 Pipeline Logger"
,
filename
=
os
.
path
.
join
(
dir_l1
,
log_ppl
))
if
verbose
:
if
verbose
:
self
.
logger_ppl
.
info
(
"logger_ppl initialized"
)
self
.
logger_ppl
.
info
(
"logger_ppl initialized"
)
# module logger
# module logger
if
log_mod
is
not
None
:
self
.
logger_mod
=
get_logger
(
name
=
"CSST L1 Module Logger"
,
filename
=
os
.
path
.
join
(
dir_l1
,
log_mod
))
self
.
logger_mod
=
get_logger
(
name
=
"CSST L1 Module Logger"
,
filename
=
os
.
path
.
join
(
dir_l1
,
log_mod
))
if
verbose
:
if
verbose
:
self
.
logger_mod
.
info
(
"logger_mod initialized"
)
self
.
logger_mod
.
info
(
"logger_mod initialized"
)
...
...
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