You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (obj.getClass() == nextflow.util.MemoryUnit && obj.compareTo(params.max_memory as nextflow.util.MemoryUnit) == 1)
32
-
return params.max_memory as nextflow.util.MemoryUnit
33
-
else if (obj.getClass() == nextflow.util.Duration && obj.compareTo(params.max_time as nextflow.util.Duration) == 1)
34
-
return params.max_time as nextflow.util.Duration
35
-
else if (obj.getClass() == java.lang.Integer)
36
-
return Math.min(obj, params.max_cpus as int)
37
-
else
38
-
return obj
39
-
} catch (all) {
40
-
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"
0 commit comments