Skip to content

Commit

Permalink
timestep accumulator needs to be reset in init for eula.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Bloedow committed Jun 18, 2024
1 parent 34ad49a commit 5c31d0c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion jb/src/model_numpy/eula.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ def count_by_node_and_age( nodes, ages ):
return counts

def init():
global eula_dict, next_eula_pops
global eula_dict, next_eula_pops, timestep_abs
next_eula_pops = np.zeros( demographics_settings.num_nodes ).astype( np.uint32 )
timestep_abs = 0

for node in range(settings.num_nodes):
m, b = fits[node]
Expand Down

0 comments on commit 5c31d0c

Please sign in to comment.