slice_to_range# pybrops.core.util.subroutines.slice_to_range(s, end)[source]# Convert a slice object to a range object. Parameters: s (slice) – Slice to convert. end (int) – End index. Returns: out – A range object representing the slice. Return type: range