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-cicd
csst-dag
Commits
5d498148
Commit
5d498148
authored
Jul 03, 2025
by
BO ZHANG
🏀
Browse files
update dag -> detectors
parent
bb631b05
Changes
1
Show whitespace changes
Inline
Side-by-side
csst_dag/dag/dags.py
View file @
5d498148
...
@@ -4,7 +4,7 @@ import numpy as np
...
@@ -4,7 +4,7 @@ import numpy as np
from
csst_dfs_client
import
plan
,
level0
from
csst_dfs_client
import
plan
,
level0
from
._base_dag
import
BaseDAG
from
._base_dag
import
BaseDAG
from
..csst
import
csst
from
..
_
csst
import
csst
# DAG_DETECTOR_NAMES = {
# DAG_DETECTOR_NAMES = {
...
@@ -23,20 +23,20 @@ from ..csst import csst
...
@@ -23,20 +23,20 @@ from ..csst import csst
def
get_detector_names_via_dag
(
dag
:
str
)
->
list
[
str
]:
def
get_detector_names_via_dag
(
dag
:
str
)
->
list
[
str
]:
if
"msc"
in
dag
:
if
"msc"
in
dag
:
if
"mbi"
in
dag
:
if
"mbi"
in
dag
or
"ast"
in
dag
:
return
csst
[
"
msc
"
][
"
mbi
"
].
effective_detector_names
return
csst
[
"
MSC
"
][
"
MBI
"
].
effective_detector_names
elif
"sls"
in
dag
:
elif
"sls"
in
dag
:
return
csst
[
"
msc
"
][
"
sls
"
].
effective_detector_names
return
csst
[
"
MSC
"
][
"
SLS
"
].
effective_detector_names
else
:
else
:
return
csst
[
"
msc
"
].
effective_detector_names
return
csst
[
"
MSC
"
].
effective_detector_names
elif
"mci"
in
dag
:
elif
"mci"
in
dag
:
return
csst
[
"
mci
"
].
effective_detector_names
return
csst
[
"
MCI
"
].
effective_detector_names
elif
"ifs"
in
dag
:
elif
"ifs"
in
dag
:
return
csst
[
"
ifs
"
].
effective_detector_names
return
csst
[
"
IFS
"
].
effective_detector_names
elif
"cpic"
in
dag
:
elif
"cpic"
in
dag
:
return
csst
[
"
cpic
"
].
effective_detector_names
return
csst
[
"
CPIC
"
].
effective_detector_names
elif
"hstdm"
in
dag
:
elif
"hstdm"
in
dag
:
return
csst
[
"
hstdm
"
].
effective_detector_names
return
csst
[
"
HSTDM
"
].
effective_detector_names
class
GeneralDAGViaObsid
(
BaseDAG
):
class
GeneralDAGViaObsid
(
BaseDAG
):
...
...
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