Snakefile: fix memory function for clusters == 'all'

This commit is contained in:
Fabian 2022-03-02 14:22:16 +01:00
parent 8dafb7bc83
commit 49ec143b0a

View File

@ -313,6 +313,8 @@ def memory(w):
break
if w.clusters.endswith('m'):
return int(factor * (18000 + 180 * int(w.clusters[:-1])))
elif w.clusters == "all":
return int(factor * (18000 + 180 * 4000))
else:
return int(factor * (10000 + 195 * int(w.clusters)))