slice_to_list#

pybrops.core.util.subroutines.slice_to_list(s, end)[source]#

Convert a slice object to a list object.

Parameters:
  • s (slice) – Slice to convert.

  • end (int) – End index.

Returns:

out – A list object representing the slice.

Return type:

list