parseCmdlineNumberString

lsst.cp.pipe.utils.parseCmdlineNumberString(inputString)

Parse command line numerical expression sytax and return as list of int

Take an input of the form “‘1..5:2^123..126’” as a string, and return a list of ints as [1, 3, 5, 123, 124, 125, 126]

Parameters:
inputString : str

String to be parsed.

Returns:
outList : list [int]

List of integers identified in the string.