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
e3741dbb
Commit
e3741dbb
authored
May 09, 2025
by
BO ZHANG
🏀
Browse files
add camera to CPIC DAGs
parent
eb780b3a
Changes
4
Hide whitespace changes
Inline
Side-by-side
csst_dag/cli/cpic.py
View file @
e3741dbb
...
@@ -40,9 +40,13 @@ print("CLI parameters: ", args)
...
@@ -40,9 +40,13 @@ print("CLI parameters: ", args)
DAG_LOOP_MAP
=
{
DAG_LOOP_MAP
=
{
"SCI"
:
[
"csst-cpic-l1"
],
"SCI"
:
[
"csst-cpic-l1"
],
"DSF"
:
[
"csst-cpic-l1"
],
"CALS"
:
[
"csst-cpic-l1"
],
"BIAS"
:
[
"csst-cpic-l1-qc0"
],
"BIAS"
:
[
"csst-cpic-l1-qc0"
],
"DARK"
:
[
"csst-cpic-l1-qc0"
],
"DARK"
:
[
"csst-cpic-l1-qc0"
],
"FLAT"
:
[
"csst-cpic-l1-qc0"
],
"FLAT"
:
[
"csst-cpic-l1-qc0"
],
"BKG"
:
[
"csst-cpic-l1-qc0"
],
"LASER"
:
[
"csst-cpic-l1-qc0"
],
}
}
if
args
.
obs_type
:
if
args
.
obs_type
:
assert
args
.
obs_type
in
DAG_LOOP_MAP
.
keys
(),
f
"Unknown obs_type:
{
args
.
obs_type
}
"
assert
args
.
obs_type
in
DAG_LOOP_MAP
.
keys
(),
f
"Unknown obs_type:
{
args
.
obs_type
}
"
...
...
csst_dag/dag/l1.py
View file @
e3741dbb
...
@@ -105,11 +105,23 @@ DAG_PARAMS = {
...
@@ -105,11 +105,23 @@ DAG_PARAMS = {
},
},
"csst-cpic-l1"
:
{
"csst-cpic-l1"
:
{
"instrument"
:
"CPIC"
,
"instrument"
:
"CPIC"
,
"additional_keys"
:
{},
"additional_keys"
:
{
"camera"
:
{
"key_in_dfs"
:
"detector_no"
,
"key_in_dag"
:
"camera"
,
"enum"
:
[
"VIS"
],
},
},
},
},
"csst-cpic-l1-qc0"
:
{
"csst-cpic-l1-qc0"
:
{
"instrument"
:
"CPIC"
,
"instrument"
:
"CPIC"
,
"additional_keys"
:
{},
"additional_keys"
:
{
"camera"
:
{
"key_in_dfs"
:
"detector_no"
,
"key_in_dag"
:
"camera"
,
"enum"
:
[
"VIS"
],
},
},
},
},
}
}
...
...
csst_dag/dag_config/csst-cpic-l1-qc0.json
View file @
e3741dbb
...
@@ -6,5 +6,6 @@
...
@@ -6,5 +6,6 @@
"obs_type"
:
"SCI"
,
"obs_type"
:
"SCI"
,
"project_id"
:
"none"
,
"project_id"
:
"none"
,
"obs_id"
:
"40100000001"
,
"obs_id"
:
"40100000001"
,
"camera"
:
"VIS"
,
"batch_id"
:
"inttest"
"batch_id"
:
"inttest"
}
}
csst_dag/dag_config/csst-cpic-l1.json
View file @
e3741dbb
...
@@ -6,5 +6,6 @@
...
@@ -6,5 +6,6 @@
"obs_type"
:
"SCI"
,
"obs_type"
:
"SCI"
,
"project_id"
:
"none"
,
"project_id"
:
"none"
,
"obs_id"
:
"40100000001"
,
"obs_id"
:
"40100000001"
,
"camera"
:
"VIS"
,
"batch_id"
:
"inttest"
"batch_id"
:
"inttest"
}
}
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