Skip to content

Commit

Permalink
bug fix - problem with printing which indicator has all missing values
Browse files Browse the repository at this point in the history
  • Loading branch information
jarathomas committed May 7, 2024
1 parent a379855 commit a814b3c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ build-requires = [

[project]
name = "insilicova"
version = "0.1.1"
version = "0.1.2"
authors = [
{name = "Jason Thomas", email = "[email protected]"},
{name = "Sherry Zhao", email =" [email protected]"},
Expand Down
9 changes: 7 additions & 2 deletions src/insilicova/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit a814b3c

Please sign in to comment.