Skip to content

Commit

Permalink
Small BM improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
kpj committed May 6, 2015
1 parent 0c97471 commit 7daa5a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down

0 comments on commit 7daa5a4

Please sign in to comment.