timestep function¶
(Shortest import: from brian2.core.functions import timestep)
- brian2.core.functions.timestep(t, dt)[source]¶
Converts a given time to an integer time step. This function slightly shifts the time before dividing it by
dtto make sure that multiples ofdtdo not end up in the preceding time step due to floating point issues. This function is used in the refractoriness calculation.New in version 2.1.3.