Skip to content
Snippets Groups Projects

Fix: shift_slice to accept single slices as argument, and return tuples

Merged Frederik Hennig requested to merge da15siwa/pystencils:fix_slicing into master
  1. Oct 06, 2020
  2. Oct 05, 2020
    • Frederik Hennig's avatar
      Fixes to shift_slice · 28ac5a3c
      Frederik Hennig authored
      - `shift_slice` did not work for single slices as it always tried to
      iterate its argument
      - `shift_slice` returned lists of slices, but for accessing numpy
      arrays, tuples of slices are required
      28ac5a3c