From 07507e767f01014afe00b3402299cf02074ed1e8 Mon Sep 17 00:00:00 2001 From: Mira Kuntz Date: Mon, 13 May 2024 10:15:35 +0200 Subject: [PATCH] never trust the linter --- files/galaxy/tpv/tools.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/files/galaxy/tpv/tools.yml b/files/galaxy/tpv/tools.yml index 9d4025cdf..6e87dcf0f 100644 --- a/files/galaxy/tpv/tools.yml +++ b/files/galaxy/tpv/tools.yml @@ -287,8 +287,10 @@ tools: execute: | from random import SystemRandom if SystemRandom().random() < 0.10: - entity.gpus = 1 - entity.params['singularity_run_extra_arguments'] = '--env ALPHAFOLD_DB=/data/db/databases/alphafold_databases,ALPHAFOLD_USE_GPU=True' + entity.gpus = 1 + entity.params['singularity_run_extra_arguments'] = '--env ALPHAFOLD_DB=/data/db/databases/alphafold_databases,ALPHAFOLD_USE_GPU=True' + else: + entity.params['singularity_run_extra_arguments'] = '--env ALPHAFOLD_DB=/data/db/databases/alphafold_databases,ALPHAFOLD_USE_GPU=False' # tweak amount of requested memory depending on the AlphaFold model to be run - id: model_preset_multimer if: job.get_param_values(app).get("model_preset") == "multimer"