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
922706e5
Commit
922706e5
authored
Dec 28, 2022
by
BO ZHANG
🏀
Browse files
use string instead of lambda functions for custom ref
parent
eef7fc6b
Changes
1
Hide whitespace changes
Inline
Side-by-side
csst_common/data_manager.py
View file @
922706e5
...
...
@@ -440,7 +440,7 @@ class CsstMsDataManager:
else
:
return
self
.
path_aux
.
format
(
detector
,
"bias"
)
else
:
return
self
.
custom_bias
(
detector
)
return
self
.
custom_bias
.
format
(
detector
)
def
get_dark
(
self
,
detector
=
6
):
""" get dark data """
...
...
@@ -450,7 +450,7 @@ class CsstMsDataManager:
else
:
return
self
.
path_aux
.
format
(
detector
,
"dark"
)
else
:
return
self
.
custom_dark
(
detector
)
return
self
.
custom_dark
.
format
(
detector
)
def
get_flat
(
self
,
detector
=
6
):
""" get flat data """
...
...
@@ -460,7 +460,7 @@ class CsstMsDataManager:
else
:
return
self
.
path_aux
.
format
(
detector
,
"flat"
)
else
:
return
self
.
custom_flat
(
detector
)
return
self
.
custom_flat
.
format
(
detector
)
def
get_axeconf
(
self
):
if
os
.
uname
()[
1
]
==
"dandelion"
:
...
...
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