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
f54a23db
Commit
f54a23db
authored
Jun 30, 2023
by
BO ZHANG
🏀
Browse files
add dm.get_shutter
parent
abf20b69
Changes
1
Show whitespace changes
Inline
Side-by-side
csst_common/data_manager.py
View file @
f54a23db
...
@@ -578,6 +578,19 @@ class CsstMsDataManager:
...
@@ -578,6 +578,19 @@ class CsstMsDataManager:
else
:
else
:
return
self
.
custom_flat
.
format
(
"flat"
,
detector
)
return
self
.
custom_flat
.
format
(
"flat"
,
detector
)
def
get_shutter
(
self
,
detector
=
6
):
""" get flat data """
if
self
.
custom_flat
is
None
:
return
os
.
path
.
join
(
self
.
path_aux
,
"C6.2_ref_mbi"
,
"CSST_MSC_MS_SHUTTER_{:02d}_{:04d}.fits"
.
format
(
detector
,
1
if
self
.
ref_version
is
None
else
self
.
ref_version
)
)
else
:
return
self
.
custom_flat
.
format
(
"flat"
,
detector
)
def
get_axeconf
(
self
):
def
get_axeconf
(
self
):
return
os
.
path
.
join
(
self
.
path_aux
,
"axeconf"
)
# "/home/csstpipeline/L1Pipeline/aux/axeconf"
return
os
.
path
.
join
(
self
.
path_aux
,
"axeconf"
)
# "/home/csstpipeline/L1Pipeline/aux/axeconf"
...
...
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