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
d5632463
Commit
d5632463
authored
Feb 20, 2023
by
BO ZHANG
🏀
Browse files
add performance files to whitelist
parent
2e43158e
Changes
1
Hide whitespace changes
Inline
Side-by-side
csst_common/data_manager.py
View file @
d5632463
...
@@ -247,9 +247,7 @@ class CsstMsDataManager:
...
@@ -247,9 +247,7 @@ class CsstMsDataManager:
self
.
clear_dir
(
self
.
dir_l1
)
self
.
clear_dir
(
self
.
dir_l1
)
# L1 whitelist
# L1 whitelist
self
.
l1_whitelist
=
[
self
.
l1_whitelist
=
[
self
.
l1_file
(
name
=
"mrs.csv"
),
]
self
.
l1_file
(
name
=
"csst-l1"
)
]
for
detector
in
self
.
target_detectors
:
for
detector
in
self
.
target_detectors
:
if
self
.
datatype
==
"mbi"
:
if
self
.
datatype
==
"mbi"
:
self
.
l1_whitelist
.
append
(
self
.
l1_detector
(
detector
=
detector
,
post
=
"img_L1.fits"
))
self
.
l1_whitelist
.
append
(
self
.
l1_detector
(
detector
=
detector
,
post
=
"img_L1.fits"
))
...
@@ -278,11 +276,13 @@ class CsstMsDataManager:
...
@@ -278,11 +276,13 @@ class CsstMsDataManager:
self
.
custom_flat
=
None
self
.
custom_flat
=
None
self
.
stamps
=
stamps
self
.
stamps
=
stamps
if
self
.
stamps
!=
""
:
self
.
l1_whitelist
.
append
(
self
.
l1_file
(
self
.
stamps
))
self
.
write_stamp
()
self
.
write_stamp
()
def
write_stamp
(
self
):
def
write_stamp
(
self
):
if
self
.
stamps
is
not
None
and
not
self
.
stamps
=
=
""
:
if
self
.
stamps
is
not
None
and
self
.
stamps
!
=
""
:
with
open
(
self
.
stamps
,
"a+"
)
as
f
:
with
open
(
self
.
l1_file
(
self
.
stamps
)
,
"a+"
)
as
f
:
f
.
write
(
f
"
{
time
.
Time
.
now
().
isot
.
replace
(
'.'
,
','
)
}
+0800
\n
"
)
f
.
write
(
f
"
{
time
.
Time
.
now
().
isot
.
replace
(
'.'
,
','
)
}
+0800
\n
"
)
@
staticmethod
@
staticmethod
...
...
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