Skip to content

Handle more gracefully the case when the number of reachable attractors with proba>0 is zero#4

Merged
pauleve merged 2 commits intobnediction:masterfrom
clreda:master
Oct 1, 2025
Merged

Handle more gracefully the case when the number of reachable attractors with proba>0 is zero#4
pauleve merged 2 commits intobnediction:masterfrom
clreda:master

Conversation

@clreda
Copy link
Copy Markdown
Contributor

@clreda clreda commented Sep 30, 2025

Hello,

I recently encountered the case where I tried to generate reachable attractors and their associated probabilities for my network, and actually no attractor with probability>0 was returned (depending on the initial condition and the parameter limit in the computation of reachable attractors: the network is not mutated). In the previous version of the code, this raises an exception in the return instruction of function sample_reachable_attractor, whereas I would prefer to check the number of attractors and handle the issue myself.

Cheers,

@pauleve pauleve merged commit b81c095 into bnediction:master Oct 1, 2025
@pauleve
Copy link
Copy Markdown
Member

pauleve commented Oct 1, 2025

Thanks!

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.

2 participants