Generates a timer function that returns True
at one or several specified periods.
Parameters
n — int|list, required
The period(s) at which the timer function should return
True
.
Return Value — func(int)
A timer function that takes the model time and returns a boolean.
charwick
Mar 24, 2020 at 3:47This code registers a shock that reduces the population of human-primitive agents by half in period 2018.