From bd3ef458b9bfe3afcd84792194c9c6bc16f522c6 Mon Sep 17 00:00:00 2001 From: DriesSchaumont <5946712+DriesSchaumont@users.noreply.github.com> Date: Wed, 8 Jan 2025 09:13:44 +0000 Subject: [PATCH] Revert changes to channelFromParams --- .../viash/runners/nextflow/channel/channelFromParams.nf | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/main/resources/io/viash/runners/nextflow/channel/channelFromParams.nf b/src/main/resources/io/viash/runners/nextflow/channel/channelFromParams.nf index bcb8b409e..4c702e344 100644 --- a/src/main/resources/io/viash/runners/nextflow/channel/channelFromParams.nf +++ b/src/main/resources/io/viash/runners/nextflow/channel/channelFromParams.nf @@ -56,12 +56,6 @@ private List>> _paramsToParamSets(Map params, /* combine arguments into channel */ /**********************************/ - - // Fetch default values for arguments - def defaultArgs = config.allArguments - .findAll { it.containsKey("default") } - .collectEntries { [ it.plainName, it.default ] } - def processedParams = paramSets.indexed().collect{ index, tup -> // Process ID def id = tup[0] ?: globalID @@ -73,7 +67,7 @@ private List>> _paramsToParamSets(Map params, assert id != null: "Each parameter set should have at least an 'id'" // Process params - def parValues = defaultArgs + globalParams + tup[1] + def parValues = globalParams + tup[1] // // Remove parameters which are null, if the default is also null // parValues = parValues.collectEntries{paramName, paramValue -> // parameterSettings = config.functionality.allArguments.find({it.plainName == paramName})