From a8faeda14130ada4323121e6e40ee9ad34b8bdd8 Mon Sep 17 00:00:00 2001 From: Simon Pearce <24893913+SPPearce@users.noreply.github.com> Date: Thu, 1 Sep 2022 11:23:07 +0100 Subject: [PATCH] Update crukmi.config --- conf/pipeline/sarek/crukmi.config | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/conf/pipeline/sarek/crukmi.config b/conf/pipeline/sarek/crukmi.config index 0b2aecd..66a0b85 100644 --- a/conf/pipeline/sarek/crukmi.config +++ b/conf/pipeline/sarek/crukmi.config @@ -16,18 +16,3 @@ process { } } - -def check_resource(obj) { - try { - if (obj.getClass() == nextflow.util.MemoryUnit && obj.compareTo(params.max_memory as nextflow.util.MemoryUnit) == 1) - return params.max_memory as nextflow.util.MemoryUnit - else if (obj.getClass() == nextflow.util.Duration && obj.compareTo(params.max_time as nextflow.util.Duration) == 1) - return params.max_time as nextflow.util.Duration - else if (obj.getClass() == java.lang.Integer) - return Math.min(obj, params.max_cpus as int) - else - return obj - } catch (all) { - println " ### ERROR ### Max params max_memory:'${params.max_memory}', max_time:'${params.max_time}' or max_cpus:'${params.max_cpus}' is not valid! Using default value: $obj" - } -}