Skip to content

Commit

Permalink
Revert changes to channelFromParams
Browse files Browse the repository at this point in the history
  • Loading branch information
DriesSchaumont committed Jan 8, 2025
1 parent 61b38b0 commit bd3ef45
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,6 @@ private List<Tuple2<String, Map<String, Object>>> _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
Expand All @@ -73,7 +67,7 @@ private List<Tuple2<String, Map<String, Object>>> _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})
Expand Down

0 comments on commit bd3ef45

Please sign in to comment.