Skip to content

Give a clear error when the attractor eigenvector fails to converge - #25

Open
SAY-5 wants to merge 1 commit into
smorabit:mainfrom
SAY-5:fix-attractors-eigen-nonconvergence
Open

Give a clear error when the attractor eigenvector fails to converge#25
SAY-5 wants to merge 1 commit into
smorabit:mainfrom
SAY-5:fix-attractors-eigen-nonconvergence

Conversation

@SAY-5

@SAY-5 SAY-5 commented Jul 20, 2026

Copy link
Copy Markdown

Fixes #24. When RSpectra::eigs fails to converge in PredictAttractors (it warns "only 0 eigenvalue(s) converged") the returned $vectors has no columns, so eig_res$vectors[, 1] dies with the opaque "subscript out of bounds" reported in the issue. This adds a guard right after the eigs call that stops with a message pointing at the degenerate transition graph instead, and a regression test covering the zero-column case.

Signed-off-by: Sai Asish Y <say.apm35@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PredictAttractors - Error in eig_res$vectors[, 1] : subscript out of bounds

1 participant