diff --git a/baredSC/_version.py b/baredSC/_version.py index ec5bc3d..2b79472 100644 --- a/baredSC/_version.py +++ b/baredSC/_version.py @@ -2,4 +2,4 @@ Store version number """ -__version__ = '1.1.2' +__version__ = '1.1.3' diff --git a/baredSC/oned.py b/baredSC/oned.py index db8abc5..f1890f0 100644 --- a/baredSC/oned.py +++ b/baredSC/oned.py @@ -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, ) @@ -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') diff --git a/docs/content/releases.rst b/docs/content/releases.rst index 2f9ef05..5f68763 100644 --- a/docs/content/releases.rst +++ b/docs/content/releases.rst @@ -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 -----