Skip to content

Commit

Permalink
allow alpha=beta=0
Browse files Browse the repository at this point in the history
  • Loading branch information
benmaier committed Mar 4, 2019
1 parent 6b2d278 commit 04c280a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tacoma/flockwork.py
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,10 @@ def naive_varying_rate_flockwork_simulation(N, t, reconnection_rates, disconnect
for a_, b_ in zip(reconnection_rates, disconnection_rates):

dt = t[it+1] - t[it]
P = a_ / (a_+b_)
if a_ == 0.0 and b_ == 0.0:
P = 0
else:
P = a_ / (a_+b_)
g = (a_+b_)

if it == 0:
Expand Down

0 comments on commit 04c280a

Please sign in to comment.