range_to_list¶
- range_to_list(arg)[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 (str) -- The numeric range expressed in CASA syntax.
- Returns:
The equivalent Python list of integers.
- Return type:
list[int]