reset_time#
- pypillometry.reset_time(t0=None)#
Pipeline step for
reset_time()(d | pp.reset_time(...)).Resets time so that time t0 becomes time zero.
t0 is subtracted from the time-vector, the event onsets and the periods in
params["removed_intervals"](seeremove_intervals()).- Parameters:
t0 (
float|None) – time (in ms) that becomes the new time zero; if None, use the first time point (so that the time-vector starts at zero)inplace (bool or None, optional) – if True, make change in-place and return the object; if False, make and return copy before making changes; if None, use the object-level setting (specified in the constructor)
- Return type:
- Returns:
the object with shifted time (self or a copy, depending on inplace)