Commit e3741dbb authored by BO ZHANG's avatar BO ZHANG 🏀
Browse files

add camera to CPIC DAGs

parent eb780b3a
...@@ -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}"
......
...@@ -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"],
},
},
}, },
} }
......
...@@ -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"
} }
...@@ -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"
} }
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment