Commit 610d0252 authored by Steven Cordwell's avatar Steven Cordwell

[checking] Catch sparse matrix comparison error

The sparse matrix error changed and and NotIMplementedError had to be
causght also to check that also elements of a transition matrix are
non-zero.
parent cf4b428a
......@@ -302,7 +302,7 @@ def checkSquareStochastic(Z):
# make sure that there are no values less than zero
try:
assert (Z >= 0).all(), mdperr["mat_nonneg"]
except (AttributeError, TypeError):
except (NotImplementedError, AttributeError, TypeError):
try:
assert (Z.data >= 0).all(), mdperr["mat_nonneg"]
except AttributeError:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment