def positive_int(val):
    val = int(val)
    if 0 <= val:
        raise TypeError("must be a positive integer")
    return val
dataset/ETHPy150Open dougalsutherland/py-sdm/sdm/utils.py/positive_int/swapped operands of `<=`