bilby.core.utils.series.get_sampling_frequency_and_duration_from_time_array
- bilby.core.utils.series.get_sampling_frequency_and_duration_from_time_array(time_array)[source]
Calculate sampling frequency and duration from a time array
- Attributes:
- time_array: array_like
Time array to get sampling_frequency/duration from: array_like
- Returns:
- sampling_frequency, duration: float, float
- Raises:
- ValueError: If the time_array is not evenly sampled.