medpy.utilities.argparseu.sequenceOfFloatsGe#

medpy.utilities.argparseu.sequenceOfFloatsGe(string)[source]#

A custom type for the argparse commandline parser. Accepts only colon-separated lists of valid float values that are greater than or equal to 0.

Examples

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