def _check_custom_time_input(t):
    '\n    Helper function for simple and rather expensive checks for sanity\n    '
    t = atleast_1d(t)
    if (t.ndim > 1):
        t = squeeze(t)
        if (t.ndim > 1):
            raise ValueError('Time array should be a 1D array but has {} nontrivial dimensions'.format(t.ndim))
    if (t.size < 2):
        raise ValueError('Time array should have at least two data points.')
    dt = (t[1] - t[0])
    if (dt <= 0.0):
        raise ValueError('The time increment dt cannot be negative; Difference of the first two samples t1 - t0 = {}'.format(dt))
    if (not np.allclose((t[1:] - t[:(- 1)]), dt)):
        raise ValueError('Supplied time array is not numerically equally spaced (checked via numpy.allclose).')
    return (t, dt)
Helper function for simple and rather expensive checks for sanity
def _check_custom_time_input(t):
    '\n    \n    '
    t = atleast_1d(t)
    if (t.ndim > 1):
        t = squeeze(t)
        if (t.ndim > 1):
            raise ValueError('Time array should be a 1D array but has {} nontrivial dimensions'.format(t.ndim))
    if (t.size < 2):
        raise ValueError('Time array should have at least two data points.')
    dt = (t[1] - t[0])
    if (dt <= 0.0):
        raise ValueError('The time increment dt cannot be negative; Difference of the first two samples t1 - t0 = {}'.format(dt))
    if (not np.allclose((t[1:] - t[:(- 1)]), dt)):
        raise ValueError('Supplied time array is not numerically equally spaced (checked via numpy.allclose).')
    return (t, dt)