Skip to content

Commit

Permalink
Merge pull request #5 from lldelisle/dev
Browse files Browse the repository at this point in the history
Release 1.1.3
  • Loading branch information
lldelisle authored Mar 11, 2024
2 parents ec3a6d1 + c8de8f6 commit 5936a6c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion baredSC/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
Store version number
"""

__version__ = '1.1.2'
__version__ = '1.1.3'
4 changes: 2 additions & 2 deletions baredSC/oned.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ def plots_from_pdf(x, pdf, title, output, data, col_gene, osampx, xscale, target
else:
raise NotImplementedError("Only xscale Seurat and log are implemented.")
plt.plot(x, density, color='green')
except NotImplementedError:
except (NotImplementedError, np.linalg.LinAlgError):
print("Could not compute density from input data.")
plt.xlim(xmin, xmax)
plt.ylim(0, )
Expand Down Expand Up @@ -418,7 +418,7 @@ def plots_from_pdf(x, pdf, title, output, data, col_gene, osampx, xscale, target
else:
raise NotImplementedError("Only xscale Seurat and log are implemented.")
plt.plot(x, density, color='green', label='density from data')
except NotImplementedError:
except (NotImplementedError, np.linalg.LinAlgError):
print("Could not compute density from input data.")
# Posterior using full pdf
plt.plot(x, post_all_cells, color='orange', label='mean post pdf')
Expand Down
8 changes: 8 additions & 0 deletions docs/content/releases.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
Releases
========

1.1.3
-----

Bug fix:
^^^^^^^^

- In 1d when kde could not be computing with recent version of scipy. baredSC was stoped raising a `linalg.LinAlgError`.

1.1.2
-----

Expand Down

0 comments on commit 5936a6c

Please sign in to comment.