From a814b3ccdf1d2e3e4c3824fa8e415a6287f3946c Mon Sep 17 00:00:00 2001 From: Jason Thomas Date: Tue, 7 May 2024 15:21:52 -0400 Subject: [PATCH] bug fix - problem with printing which indicator has all missing values --- pyproject.toml | 2 +- src/insilicova/api.py | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index c60997f..4941dd9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -13,7 +13,7 @@ build-requires = [ [project] name = "insilicova" -version = "0.1.1" +version = "0.1.2" authors = [ {name = "Jason Thomas", email = "jarathomas@gmail.com"}, {name = "Sherry Zhao", email =" zhao.3248@buckeyemail.osu.edu"}, diff --git a/src/insilicova/api.py b/src/insilicova/api.py index 8823a09..013667d 100644 --- a/src/insilicova/api.py +++ b/src/insilicova/api.py @@ -914,9 +914,14 @@ def _check_missing_all(self): self._missing_all.append(i) if len(self._missing_all) > 0: missing_all_plus1 = np.array(self._missing_all) + 1 + pb_no_ext = np.delete(self._probbase, + self._external_symps, + axis=0) missing_all_names = ", ".join( - self._probbase[missing_all_plus1, - int(self.data_type == "WHO2012")]) + # self._probbase[missing_all_plus1, + # int(self.data_type == "WHO2012")]) + pb_no_ext[missing_all_plus1, + int(self.data_type == "WHO2012")]) warnings.warn(f"{len(self._missing_all)} symptoms missing " "completely and added to missing list. \n List of " f"missing symptoms: {missing_all_names}\n",