get_idx_from_interval
- glotaran.optimization.util.get_idx_from_interval(interval: tuple[float, float], axis: np.ndarray) tuple[int, int] [source]
Retrieves start and end index of an interval on some axis :param interval: :type interval: A tuple of floats with begin and end of the interval :param axis: :type axis: Array like object which can be cast to np.array
- Returns
start, end
- Return type
tuple of int