range_to_list¶
- range_to_list(arg: str) list[int][source]¶
Expand a numeric range expressed in CASA syntax to the list of integer.
Expand a numeric range expressed in CASA syntax to the equivalent Python list of integers.
Example: >>> range_to_list('1~5,7~9') [1, 2, 3, 4, 5, 7, 8, 9]
- Parameters:
arg -- The numeric range expressed in CASA syntax.
- Returns:
The equivalent Python list of integers.