From 1da5f14290edf954e2f4da64eccf3f81f98aaccf Mon Sep 17 00:00:00 2001 From: Daniel Bolin Date: Mon, 23 Oct 2023 16:34:15 -0400 Subject: [PATCH] Fix output from download-models.cwl --- download-models.cwl | 21 +++++++++++---------- steps/collect-files.cwl | 7 ++++++- 2 files changed, 17 insertions(+), 11 deletions(-) diff --git a/download-models.cwl b/download-models.cwl index 9347e93..0e8b266 100644 --- a/download-models.cwl +++ b/download-models.cwl @@ -16,22 +16,23 @@ inputs: outputs: data: - type: Directory[] - outputSource: [downloadAzimuth/data, downloadPopv/data] + type: Directory + outputSource: collectFiles/directory steps: downloadAzimuth: run: ./containers/azimuth/download-data.cwl - in: - outputDirectory: - source: outputDirectory - valueFrom: $(self + '/azimuth') + in: [] out: [data] downloadPopv: run: ./containers/popv/download-data.cwl - in: - outputDirectory: - source: outputDirectory - valueFrom: $(self + '/popv') + in: [] out: [data] + + collectFiles: + run: ./steps/collect-files.cwl + in: + files: [downloadAzimuth/data, downloadPopv/data] + outputDirectory: outputDirectory + out: [directory] diff --git a/steps/collect-files.cwl b/steps/collect-files.cwl index be984d3..61214fe 100644 --- a/steps/collect-files.cwl +++ b/steps/collect-files.cwl @@ -7,7 +7,12 @@ requirements: MultipleInputFeatureRequirement: {} inputs: - files: File[] + files: + type: + type: array + items: + - File + - Directory outputDirectory: string outputs: directory: Directory