bilby.core.utils.series.get_sampling_frequency_and_duration_from_frequency_array

bilby.core.utils.series.get_sampling_frequency_and_duration_from_frequency_array(frequency_array)[source]

Calculate sampling frequency and duration from a frequency array

Attributes:
frequency_array: array_like

Frequency array to get sampling_frequency/duration from: array_like

Returns:
sampling_frequency, duration: float, float
Raises:
ValueError: If the frequency_array is not evenly sampled.