eelbrain.UTS

class eelbrain.UTS(tmin, tstep, nsamples, unit='s', name='time')

Dimension object for representing uniform time series

Parameters
  • tmin (float) – First time point (inclusive).

  • tstep (float) – Time step between samples.

  • nsamples (int) – Number of samples.

Variables
  • tmin (float) – Lowest time point in seconds.

  • tmax (float) – Largest time point [s].

  • tstep (float) – Time step for each sample [s].

  • nsamples (int) – Number of samples.

  • tstop (float) – Time sample after tmax [s] (consistent with indexing excluding end point).

  • times (array (nsamples,)) – Array with all time points.

Notes

Special indexing:

(tstart, tstop)tuple

Restrict the time to the indicated window (either end-point can be None).

Methods

connectivity()

Retrieve the dimension's connectivity graph

dimindex(arg)

Convert a dimension index to an array index

from_int(first, last, sfreq)

Create a UTS dimension from sample index and sampling frequency

from_range(tstart, tstop, tstep)

Create time axis from interval and samplingrate

index_into_dim(dim)

Index into a subset dimension

intersect(dim[, check_dims])

Create a UTS dimension that is the intersection with dim