Skip to content
GitLab
Explore
Projects
Groups
Snippets
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
2 years ago
by
BO ZHANG
Browse files
Options
Download
Email Patches
Plain Diff
do not generate log file by default
parent
d06b0a5c
dev
main
wangxia-main-patch-87026
zhaobowei-main-patch-61353
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
csst_common/data_manager.py
+11
-9
csst_common/data_manager.py
with
11 additions
and
9 deletions
+11
-9
csst_common/data_manager.py
+
11
-
9
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,10 +231,12 @@ class CsstMsDataManager:
self
.
clear_dir
(
self
.
dir_l1
)
# 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
))
if
verbose
:
self
.
logger_ppl
.
info
(
"logger_ppl initialized"
)
# 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
))
if
verbose
:
self
.
logger_mod
.
info
(
"logger_mod initialized"
)
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Explore
Projects
Groups
Snippets