From 7daa5a4e7ef23d4539454718789a35cbfabd47a6 Mon Sep 17 00:00:00 2001 From: kpj Date: Wed, 6 May 2015 20:07:54 +0200 Subject: [PATCH] Small BM improvement --- models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models.py b/models.py index 56e4d90..0f8c8bc 100644 --- a/models.py +++ b/models.py @@ -173,7 +173,7 @@ def rule(x): x0 = npr.randint(2, size=num) if initial_state is None else initial_state data = np.matrix(x0) - for t in range(BooleanModel.info['max_bin_mod_runs']): + for t in range(BooleanModel.info['max_bin_mod_runs']-1): cur = rule(data[-1]) data = np.vstack((data, cur))