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
2e43158e
Commit
2e43158e
authored
Feb 20, 2023
by
BO ZHANG
🏀
Browse files
add log files to whitelist
parent
5c27fc90
Changes
1
Show whitespace changes
Inline
Side-by-side
csst_common/data_manager.py
View file @
2e43158e
...
...
@@ -247,7 +247,9 @@ class CsstMsDataManager:
self
.
clear_dir
(
self
.
dir_l1
)
# L1 whitelist
self
.
l1_whitelist
=
[]
self
.
l1_whitelist
=
[
self
.
l1_file
(
name
=
"csst-l1"
)
]
for
detector
in
self
.
target_detectors
:
if
self
.
datatype
==
"mbi"
:
self
.
l1_whitelist
.
append
(
self
.
l1_detector
(
detector
=
detector
,
post
=
"img_L1.fits"
))
...
...
@@ -263,13 +265,13 @@ class CsstMsDataManager:
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
))
self
.
l1_whitelist
.
append
(
log_ppl
)
self
.
l1_whitelist
.
append
(
os
.
path
.
join
(
dir_l1
,
log_ppl
)
)
# module logger
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
))
self
.
l1_whitelist
.
append
(
log_mod
)
self
.
l1_whitelist
.
append
(
os
.
path
.
join
(
dir_l1
,
log_mod
)
)
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