Commit 58335770 authored by Steven Cordwell's avatar Steven Cordwell
Browse files

added comment line

parent 542fc4cd
......@@ -184,7 +184,8 @@ def check(P, R):
if P.ndim == 3:
aP, sP0, sP1 = P.shape
elif P.ndim == 1:
# A hack so that we can go into the next try-except statement
# A hack so that we can go into the next try-except statement and
# continue checking from there
raise AttributeError
else:
raise ValueError(mdperr["P_shape"])
......@@ -365,7 +366,7 @@ def checkSquareStochastic(Z):
raise ValueError(mdperr["mat_nonneg"])
except AttributeError:
raise TypeError("Matrix should be a numpy type.")
except (ValueError, TypeError):
except:
raise
return(None)
......
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