diff --git a/SAS/TMSS/src/tmss/tmssapp/subtasks.py b/SAS/TMSS/src/tmss/tmssapp/subtasks.py index 8a7a1a00bf3678483ec61e7846dbc320361d6049..f2e94e94d5c94c3e19273133b177fed87cc464ad 100644 --- a/SAS/TMSS/src/tmss/tmssapp/subtasks.py +++ b/SAS/TMSS/src/tmss/tmssapp/subtasks.py @@ -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)