Skip to content
Snippets Groups Projects
Commit 032e98bc authored by Jorrit Schaap's avatar Jorrit Schaap
Browse files

TMSS-207: HACK: for commissioning we want to use the test data available on CEP4 with id 2000005

parent e92e21b8
No related branches found
No related tags found
1 merge request!175Resolve TMSS-207
......@@ -65,10 +65,11 @@ def create_observation_control_subtask_from_task_blueprint(task_blueprint: TaskB
"pointing": {"direction_type": "J2000",
"angle1": 0.4262457643630986,
"angle2": 0.5787463318245085},
"subbands": list(range(0, 8))
"subbands": list(range(0, 244))
}]
}
}
specifications_doc = add_defaults_to_json_object_for_schema(extra_specifications_doc, subtask_template.schema)
cluster_name = task_blueprint.specifications_doc.get("storage_cluster", "CEP4")
subtask_data = { "start_time": None,
......@@ -84,6 +85,12 @@ def create_observation_control_subtask_from_task_blueprint(task_blueprint: TaskB
}
subtask = Subtask.objects.create(**subtask_data)
# HACK: for commissioning we want to use the test data available on CEP4 with id 2000005
# so, create some 'bogus' ones, until we have the subtask with the correct id.
# TO BE REMOVED!
while subtask.id < 2000005:
subtask = Subtask.objects.create(**subtask_data)
# step 2: create and link subtask input/output
# an observation has no input, it just produces output data
subtask_output = SubtaskOutput.objects.create(subtask=subtask)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment