Skip to content

Commit 328522c

Browse files
committed
Merge pull request #225 from johnmcdonnell/pymc3
More interpretable error when scikits.sparse is missing.
2 parents 3d9aea2 + 57d7b18 commit 328522c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

pymc/distributions/continuous.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def logp(value):
102102
mode = mean
103103

104104
logp.__doc__ = """
105-
Normal log-likelihood with paraemters mu={0} and tau={1}.
105+
Normal log-likelihood with parameters mu={0} and tau={1}.
106106
107107
Parameters
108108
----------

pymc/step_methods/quadpotential.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ def quad_potential(C, is_cov):
1313
return C
1414

1515
if issparse(C):
16+
if not chol_available:
17+
raise ImportError, "Requires scikits.sparse"
1618
return QuadPotential_SparseInv(C)
1719

1820
partial_check_positive_definite(C)

0 commit comments

Comments
 (0)