Skip to content

Commit 57d7b18

Browse files
committed
More interpretable error for scikits.sparse missing.
1 parent 4e6de69 commit 57d7b18

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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)