eelbrain.pad
- eelbrain.pad(ndvar, tstart=None, tstop=None, nsamples=None, set_tmin=False, name=None)
Pad (or crop) an NDVar in time
- Parameters
ndvar (NDVar) – NDVar to pad.
tstart (float) – New tstart.
tstop (float) – New tstop.
nsamples (int) – New number of samples.
set_tmin (bool) – Reset
tmin
to be exactly equal totstart
. By default, the newtmin
is inferred from the time-step, i.e. the sample at whichtime == 0
is left exactly unchanged. Withset_tmin
, the time point at whichtime == 0
might shift slightly if the amount of time added is not an exact multiple of the time step.name (str) – Name for the new NDVar.
- Return type