full draft - uploaded version

This commit is contained in:
Tom
2026-06-14 23:55:02 +02:00
parent 584f44166f
commit 2f33a66152
5 changed files with 562 additions and 400 deletions

View File

@@ -23,6 +23,14 @@ probabilistic_funcs = [
]
repressilator_funcs = [
lambda x1, x2, x3: not x3,
lambda x1, x2, x3: not x1,
lambda x1, x2, x3: not x2,
]
funcs = repressilator_funcs
nodes = []
@@ -72,7 +80,7 @@ def simulate(initial_state):
def get_table():
for i in product((0, 1), repeat=4):
for i in product((0, 1), repeat=3):
init(tuple(i))
state = state_to_str()
update()
@@ -81,8 +89,8 @@ def get_table():
def update():
# return synchronous_update()
# return sequential_update([0, 1, 2, 3])
return probabilistic_update()
return sequential_update([0, 1, 2])
# return probabilistic_update()
# return block_sequential_update(...)
# return asynchronous_deterministic_update(...)