assist/command/mkmodel.py
def positive_type(val):
    """Raise an error if the value is not positive. """
    val = int(val)
    if val < 1:
        raise argparse.ArgumentTypeError("positive integers only")
    return val
Raise an error if the value is not positive. 
Raise an error if the value is not positive.
Raise an error if the value is not positive .
def positive_type(val):
    val = int(val)
    if val < 1:
        raise argparse.ArgumentTypeError("positive integers only")
    return val
def positive_type ( val ) : val = int ( val ) if val < 1 : raise argparse . ArgumentTypeError ( "positive integers only" ) return val
Raise an error if the value is not positive.
Raise an error if the value is not positive .
"""Raise an error if the value is not positive. """
val