def sequenceOfFloats(string):
    """
    A custom type for the argparse commandline parser.
    Accepts only colon-separated lists of valid float values.

    Examples
    --------

    >>> parser.add_argument('argname', type=sequenceOfFloats, help='help')

    """
    value = list(map(float, string.split(',')))
    return value
