From 79aa7a754863cca6b667ee5360d4aba52f34b358 Mon Sep 17 00:00:00 2001 From: Jorrit Schaap <schaap@astron.nl> Date: Tue, 2 Nov 2021 13:46:31 +0100 Subject: [PATCH] TMSS-1124: using first is ok according to https://git.astron.nl/ro/lofar/-/merge_requests/633#note_24581 --- SAS/TMSS/backend/src/tmss/tmssapp/subtasks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SAS/TMSS/backend/src/tmss/tmssapp/subtasks.py b/SAS/TMSS/backend/src/tmss/tmssapp/subtasks.py index 32d00e9ed57..e9fe29f48fc 100644 --- a/SAS/TMSS/backend/src/tmss/tmssapp/subtasks.py +++ b/SAS/TMSS/backend/src/tmss/tmssapp/subtasks.py @@ -1750,7 +1750,7 @@ def _create_pulsar_pipeline_output_dataproducts_and_transforms(pipeline_subtask: dataproduct_specifications_template = DataproductSpecificationsTemplate.objects.get(name="time series") # select subtask output the new dataproducts will be linked to - pipeline_subtask_output = pipeline_subtask.outputs.filter(output_role__dataformat=dataformat, output_role__datatype=datatype).first() # TODO: if we have several, how to map input to output? + pipeline_subtask_output = pipeline_subtask.outputs.filter(output_role__dataformat=dataformat, output_role__datatype=datatype).first() # how the output is constructed from the input. we do this based on filenames: input dataproducts that result in the same filename # are combined to produce the output with that filename. @@ -1824,7 +1824,7 @@ def _create_pulsar_pipeline_output_dataproducts_and_transforms(pipeline_subtask: dataproduct_specifications_template = DataproductSpecificationsTemplate.objects.get(name="pulp summary") # select subtask output the new dataproducts will be linked to - pipeline_subtask_output = pipeline_subtask.outputs.filter(output_role__dataformat=dataformat, output_role__datatype=datatype).first() # TODO: if we have several, how to map input to output? + pipeline_subtask_output = pipeline_subtask.outputs.filter(output_role__dataformat=dataformat, output_role__datatype=datatype).first() # 1. create dataproducts # type example filename -- GitLab