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
4a604e5f
Commit
4a604e5f
authored
Jul 04, 2023
by
BO ZHANG
🏀
Browse files
tweaks
parent
ae76b978
Changes
1
Show whitespace changes
Inline
Side-by-side
csst_common/data_manager.py
View file @
4a604e5f
...
...
@@ -544,7 +544,7 @@ class CsstMsDataManager:
fp
=
os
.
path
.
join
(
self
.
path_aux
,
"C6.2_ref_crds"
,
"csst_msc_ms_{}_{:02d}_{:0
4
d}.fits"
.
format
(
"bias"
,
detector
,
1
)
"csst_msc_ms_{}_{:02d}_{:0
6
d}.fits"
.
format
(
"bias"
,
detector
,
1
)
)
if
not
os
.
path
.
exists
(
fp
):
raise
FileNotFoundError
(
fp
)
...
...
@@ -556,7 +556,7 @@ class CsstMsDataManager:
fp
=
os
.
path
.
join
(
self
.
path_aux
,
"C6.2_ref_crds"
,
"csst_msc_ms_{}_{:02d}_{:0
4
d}.fits"
.
format
(
"dark"
,
detector
,
1
)
"csst_msc_ms_{}_{:02d}_{:0
6
d}.fits"
.
format
(
"dark"
,
detector
,
1
)
)
if
not
os
.
path
.
exists
(
fp
):
raise
FileNotFoundError
(
fp
)
...
...
@@ -568,7 +568,7 @@ class CsstMsDataManager:
fp
=
os
.
path
.
join
(
self
.
path_aux
,
"C6.2_ref_crds"
,
"csst_msc_ms_{}_{:02d}_{:0
4
d}.fits"
.
format
(
"ledflat"
,
detector
,
1
)
"csst_msc_ms_{}_{:02d}_{:0
6
d}.fits"
.
format
(
"ledflat"
,
detector
,
1
)
)
if
not
os
.
path
.
exists
(
fp
):
raise
FileNotFoundError
(
fp
)
...
...
@@ -580,15 +580,15 @@ class CsstMsDataManager:
fp
=
os
.
path
.
join
(
self
.
path_aux
,
"C6.2_ref_crds"
,
"csst_msc_ms_{}_{:02d}_{:0
4
d}.fits"
.
format
(
"shutter"
,
detector
,
1
)
"csst_msc_ms_{}_{:02d}_{:0
6
d}.fits"
.
format
(
"shutter"
,
detector
,
1
)
)
if
not
os
.
path
.
exists
(
fp
):
raise
FileNotFoundError
(
fp
)
else
:
return
fp
def
get_axeconf
(
self
):
return
os
.
path
.
join
(
self
.
path_aux
,
"axeconf"
)
# "/home/csstpipeline/L1Pipeline/aux/axeconf"
#
def get_axeconf(self):
#
return os.path.join(self.path_aux, "axeconf") # "/home/csstpipeline/L1Pipeline/aux/axeconf"
def
l1_file
(
self
,
name
=
""
,
comment
=
""
):
""" L1 file path
...
...
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