get_int_list¶
- sofia_redux.scan.utilities.utils.get_int_list(value, delimiter=',', default=None, is_positive=True)[source]¶
Return a list of ints from a single string.
- Parameters:
- valuestr
The string to convert into a list of integers.
- delimiterstr, optional
The string delimiter used to separate one element from the next.
- defaultlist, optional
The result to return if the value passed in is
None
.- is_positivebool, optional
If
True
, ranges may be specified using both ‘:’ and ‘-’ characters in a string. Otherwise, the ‘-’ character will imply a negative value.
- Returns:
- list (int)