schedule_propagation_offset function¶
(Shortest import: from brian2.core.network import schedule_propagation_offset)
- brian2.core.network.schedule_propagation_offset(net=None)[source]¶
Returns the minimal time difference for a post-synaptic effect after a spike. With the default schedule, this time difference is 0, since the
thresholdsslot precedes thesynapsesslot. For the GeNN device, however, a post-synaptic effect will occur in the following time step, this function therefore returns onedt.- Parameters
net :
NetworkThe network to check (uses the magic network if not specified).
- Returns
offset :
QuantityThe minimum spike propagation delay:
0*msfor the standard schedule butdtfor schedules wheresynapsesprecedesthresholds.
Notes
This function always returns
0*msordefaultclock.dt– no attempt is made to deal with other clocks.