From a9a811c38f92215a265d2113dfe9573c0362772d Mon Sep 17 00:00:00 2001 From: Carlos Loucera Date: Fri, 5 May 2023 13:03:16 +0200 Subject: [PATCH 1/2] Cover to bool and log it. --- drexml/cli/stab_explainer.py | 2 ++ drexml/utils.py | 1 + 2 files changed, 3 insertions(+) diff --git a/drexml/cli/stab_explainer.py b/drexml/cli/stab_explainer.py index f5b77f2d..d3b91b9f 100644 --- a/drexml/cli/stab_explainer.py +++ b/drexml/cli/stab_explainer.py @@ -84,6 +84,8 @@ n_chunks = max(1, n_devices) chunk_size = len(features_val) // (n_chunks) + 1 + print(f"{add=}") + def runner(model, bkg, new, check_add, use_gpu): gpu_id = queue.get() diff --git a/drexml/utils.py b/drexml/utils.py index f28eb5e8..42f537aa 100644 --- a/drexml/utils.py +++ b/drexml/utils.py @@ -73,6 +73,7 @@ def parse_stab(argv): n_gpus = int(n_gpus) n_cpus = int(n_cpus) debug = bool(int(debug)) + add = bool(int(add)) if mode == "final": n_splits = 1 From b5fe19f7fbaf7820312838d2a5aed4d3dc430ce3 Mon Sep 17 00:00:00 2001 From: Carlos Loucera Date: Mon, 8 May 2023 08:55:38 +0200 Subject: [PATCH 2/2] Update patch version. --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 07e41055..c44bfd47 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "drexml" -version = "0.9.7" +version = "0.9.8" description = "(DRExM³L) Drug REpurposing using and eXplainable Machine Learning and Mechanistic Models of signal transduction\"" authors = [ "Carlos Loucera ",