simulate
simulate(duration, measure_time=False, callbacks=True, net_id=0)Simulates the network for the given duration in milliseconds.
The number of simulation steps is computed relative to the discretization step dt declared in setup() (default: 1ms):
ann.simulate(1000.0)Parameters
| Name | Type | Description | Default | 
|---|---|---|---|
| duration | float | the duration in milliseconds. | required | 
| measure_time | bool | defines whether the simulation time should be printed. | False | 
| callbacks | bool | defines if the callback methods (decorator every) should be called. | 
True |