f4enix.input.MCNPinput.get_formatted_range#
- f4enix.input.MCNPinput.get_formatted_range(numbers: list[int]) str#
Format a range of integers into a compact string that makes use of the interval syntax in MCNP.
- Parameters:
current_range (list[int]) – List of cell or surface ids to be formatted.
- Returns:
Formatted string representing the range of ids.
- Return type:
str