You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you pass an initial state of all zeros to Tempo.compute the code fails with an IndexError in node_array.py in an SVD call, presumably because the matrix is rank 0.
I think we should raise an exception early and loudly to the user if initial state is zero rather than letting it propagate and returning a long stack-trace.
The main questions would be where to implement a check and how often e.g. in node_array.py every timestep or closer to the user interface for the initial state only.
I also noticed you can pass an ndarray of boolean values for the state. I suppose this is intentional?
If you pass an initial state of all zeros to
Tempo.compute
the code fails with anIndexError
innode_array.py
in an SVD call, presumably because the matrix is rank 0.I think we should raise an exception early and loudly to the user if initial state is zero rather than letting it propagate and returning a long stack-trace.
The main questions would be where to implement a check and how often e.g. in
node_array.py
every timestep or closer to the user interface for the initial state only.I also noticed you can pass an
ndarray
of boolean values for the state. I suppose this is intentional?MWE attached.
The text was updated successfully, but these errors were encountered: