rex.utilities.utilities.split_sites_slice

split_sites_slice(sites_slice, n_sites, slice_size)[source]

Break up sites_slice into slices of size slice_size

Parameters:
  • sites_slice (slice) – Sites to extract as a slice object to extract

  • n_sites (int) – Total number of sites to extract

  • slice_size (int) – Number of sites in each slice to extract either on each worker, or in series

Returns:

slices (list) – List of slices to extract