I realized that setting axis = -1 in slice_image() caused a seg fault, so I am adding better error catching for the axis and supporting the axis=-1 as many other libraries do. I also need to be able to slice vector images so I implemented that.
coverage: 81.331% (+0.02%) from 81.315%
when pulling 25698293d8e76acd9a6536427fca3272de4b2b3a on fix--raise-for-bad-slice-axis
into 12a60d9412a5eaa9bf3cd3dd632f0472aa887d27 on master.
I realized that setting
axis = -1
inslice_image()
caused a seg fault, so I am adding better error catching for the axis and supporting the axis=-1 as many other libraries do. I also need to be able to slice vector images so I implemented that.