Skip to content

Commit 166dc87

Browse files
committed
Bugfix: Call reset-ticks later while setting up child WSP model
The reason is that `resize-world` now clears the tick counter. This model needs to account for that.
1 parent 0f26e52 commit 166dc87

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Sample Models/Biology/Wolf Sheep Predation - Agent Cognition/Wolf Sheep Predation - Micro-Sims Cognitive Model.nlogox

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ to setup-random
8282
resize-world (- vision * 2) (vision * 2) (- vision * 2) (vision * 2)
8383
setup-reward-tracking
8484
setup
85-
reset-ticks
8685
end
8786
8887
; Initialize reward tracking system for monitoring action outcomes
@@ -128,6 +127,7 @@ to setup
128127
if max-pxcor != vision * 2 [
129128
resize-world (- vision * 2) (vision * 2) (- vision * 2) (vision * 2)
130129
]
130+
reset-ticks
131131
clear-turtles
132132
ask patches [ set pcolor black ] ; this is faster than clear-patches
133133

0 commit comments

Comments
 (0)