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
d2d06462
Commit
d2d06462
authored
Aug 31, 2022
by
BO ZHANG
🏀
Browse files
fixed a bug in dm.l0_cat
parent
099d0cf3
Changes
1
Hide whitespace changes
Inline
Side-by-side
csst_common/data_manager.py
View file @
d2d06462
...
...
@@ -156,20 +156,20 @@ class CsstMbiDataManager:
self
.
_instrument
,
self
.
_cat_id
,
self
.
_exp_id
-
100000000
,
detector
)
elif
self
.
ver_sim
==
"C5.1"
:
fn
=
"{}_{}_chip_{:02d}_filt_{}.cat"
.
format
(
self
.
_instrument
,
self
.
_exp_id
-
90000000
,
detector
,
CP
[
"mbi"
][
"detector2filter"
])
self
.
_instrument
,
self
.
_exp_id
-
90000000
,
detector
,
CP
[
"mbi"
][
"detector2filter"
]
[
detector
]
)
elif
self
.
ver_sim
==
"C5.2"
:
fn
=
"{}_{}_chip_{:02d}_filt_{}.cat"
.
format
(
self
.
_instrument
,
self
.
_exp_id
,
detector
,
CP
[
"mbi"
][
"detector2filter"
])
self
.
_instrument
,
self
.
_exp_id
,
detector
,
CP
[
"mbi"
][
"detector2filter"
]
[
detector
]
)
return
os
.
path
.
join
(
self
.
dir_l0
,
fn
)
def
l0_log
(
self
,
detector
=
6
):
""" L0 log file path """
if
self
.
ver_sim
==
"C5.1"
:
fn
=
"{}_{}_chip_{:02d}_filt_{}.log"
.
format
(
self
.
_instrument
,
self
.
_exp_id
-
90000000
,
detector
,
CP
[
"mbi"
][
"detector2filter"
])
self
.
_instrument
,
self
.
_exp_id
-
90000000
,
detector
,
CP
[
"mbi"
][
"detector2filter"
]
[
detector
]
)
elif
self
.
ver_sim
==
"C5.2"
:
fn
=
"{}_{}_chip_{:02d}_filt_{}.log"
.
format
(
self
.
_instrument
,
self
.
_exp_id
,
detector
,
CP
[
"mbi"
][
"detector2filter"
])
self
.
_instrument
,
self
.
_exp_id
,
detector
,
CP
[
"mbi"
][
"detector2filter"
]
[
detector
]
)
return
os
.
path
.
join
(
self
.
dir_l0
,
fn
)
def
l0_detector
(
self
,
detector
=
6
):
...
...
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