Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Complex attractor not displayed correctly #97

Open
kyuhyongpark opened this issue Jul 13, 2024 · 0 comments
Open

Complex attractor not displayed correctly #97

kyuhyongpark opened this issue Jul 13, 2024 · 0 comments

Comments

@kyuhyongpark
Copy link
Collaborator

import pystablemotifs as sm

rules='''
n0, !n0 & n2 | n0 & !n2 | n0 & n2
n1, !n3 & !n4 | !n3 & n4 | n3 & !n4
n2, !n0 & !n1 | n0 & !n1 | n0 & n1
n3, !n4 & !n5
n4, !n3 & !n5
n5, !n5 & !n0 | n5 & n0
'''

primes = sm.format.create_primes(rules)

sm.format.pretty_print_prime_rules(primes)
print()

ar = sm.AttractorRepertoire.from_primes(primes, max_simulate_size=200)

ar.summary()

Outcome

n0* = n2 | n0
n1* = !n4 | !n3
n2* = !n1 | n0
n3* = !n4 & !n5
n4* = !n3 & !n5
n5* = !n0 & !n5 | n0 & n5

There are 4 attractors.
{'n0': 0, 'n1': 1, 'n2': 0, 'n3': '0', 'n4': '1', 'n5': '0'}

{'n0': 1, 'n1': 1, 'n2': 1, 'n3': 0, 'n4': 0, 'n5': 1}

{'n0': 1, 'n1': 1, 'n2': 1, 'n3': 1, 'n4': 0, 'n5': 0}

{'n0': 1, 'n1': 1, 'n2': 1, 'n3': 0, 'n4': 1, 'n5': 0}

The first should be a complex attractor.
The stg of the attractor is correct, and hence this must be a problem with the ar.summary()
I will check on it later.

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

No branches or pull requests

1 participant