def valid_window_lengths(underlying_buffer_length):
    return iter(range(1, underlying_buffer_length + 1))
An iterator of all legal window lengths on a buffer of a given length.
dataset/ETHPy150Open quantopian/zipline/tests/pipeline/test_adjusted_array.py/valid_window_lengths