bilby.core.utils.series.get_sampling_frequency

bilby.core.utils.series.get_sampling_frequency(time_array)[source]

Calculate sampling frequency from a time series

Attributes:
time_array: array_like

Time array to get sampling_frequency from

Returns:
Sampling frequency of the time series: float
Raises:
ValueError: If the time series is not evenly sampled.