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
Files
2
  • 28ac5a3c
    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