From f11693ed176a133243252ab363f25dbd2621eee0 Mon Sep 17 00:00:00 2001 From: Siegfried Gessulat Date: Tue, 8 Oct 2024 14:38:59 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20are=20scores=20zero=3F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mokapot/brew.py | 2 +- mokapot/mokapot.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/mokapot/brew.py b/mokapot/brew.py index 8909b82..8dc7f73 100644 --- a/mokapot/brew.py +++ b/mokapot/brew.py @@ -228,8 +228,8 @@ def brew( max_workers=max_workers, ) ) - # If model training has failed else: + logging.info("Model training failed. Setting scores to zero.") scores = [np.zeros(x) for x in data_size] # Find which is best: the learned model, the best feature, or # a pretrained model. diff --git a/mokapot/mokapot.py b/mokapot/mokapot.py index b39dbaa..9f58f8e 100644 --- a/mokapot/mokapot.py +++ b/mokapot/mokapot.py @@ -123,6 +123,7 @@ def main(main_args=None): logging.info("BREW DELETE ME") for s in scores: logging.info(f"{s}") + logging.info(f"{(s == 0).all()}") if config.dest_dir is not None: config.dest_dir.mkdir(exist_ok=True)