def check_sorted(array):
    # this ignores NANs, and does the right thing if nans
    # are concentrated at beginning or end of array
    # otherwise, it will miss things at nan/finite boundaries
    array = np.asarray(array)
    return not (array[:-1] > array[1:]).any()
testing if the rate attribute value will be a Rate instance with
dataset/ETHPy150Open glue-viz/glue/glue/utils/array.py/check_sorted--crossover with--dataset/ETHPy150Open eoyilmaz/anima/tests/previs/test_clip.py/ClipTestCase.test_rate_argument_is_skipped