def is_valid_frequency(frequency):
    assert(isinstance(frequency, int))
    assert(frequency > 1)

    if bar.Frequency.DAY < frequency:
        ret = True
    elif frequency == bar.Frequency.DAY:
        ret = True
    elif frequency == bar.Frequency.MONTH:
        ret = True
    else:
        ret = False
    return ret
dataset/ETHPy150Open gbeced/pyalgotrade/pyalgotrade/resamplebase.py/is_valid_frequency/swapped operands of `<`