neurodsp.utils.data.compute_nseconds

neurodsp.utils.data.compute_nseconds(sig, fs)[source]

Compute the length, in time, of a signal.

Parameters
sig1d array

Time series.

fsfloat

Signal sampling rate, in Hz.

Returns
fsfloat

Signal duration, in seconds.