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

TMSS-1124: create a subtask_output per task_connector_type of the task, but...

TMSS-1124: create a subtask_output per task_connector_type of the task, but only with role Correlator or Beamformer because that is what observations produce
parent e91ea82a
No related branches found
No related tags found
1 merge request!633TMSS-1124
...@@ -644,8 +644,8 @@ def create_observation_control_subtask_from_task_blueprint(task_blueprint: TaskB ...@@ -644,8 +644,8 @@ def create_observation_control_subtask_from_task_blueprint(task_blueprint: TaskB
# step 2: create and link subtask input/output # step 2: create and link subtask input/output
# an observation has no input, it just produces output data # an observation has no input, it just produces output data
# create a subtask_output per task_connector_type of the task # create a subtask_output per task_connector_type of the task, but only with role Correlator or Beamformer because that is what observations produce.
for task_connector_type in task_blueprint.specifications_template.connector_types.filter(iotype__value=IOType.Choices.OUTPUT.value).all(): for task_connector_type in task_blueprint.specifications_template.connector_types.filter(iotype__value=IOType.Choices.OUTPUT.value).filter(Q(role__value=Role.Choices.CORRELATOR.value)|Q(role__value=Role.Choices.BEAMFORMER.value)).all():
subtask_output = SubtaskOutput.objects.create(subtask=subtask, output_role=task_connector_type) subtask_output = SubtaskOutput.objects.create(subtask=subtask, output_role=task_connector_type)
# step 3: set state to DEFINED # step 3: set state to DEFINED
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment