Fix using slice(None) as default value for double sized strixels
Description
As reported by Nuno, a missing double sized pixel definition in the hardcoded conversion files for strixels unfortunately uses slice(None)
/ np.s_[:]
instead, effectively making all pixels double-sized. This MR fixes this by using np.s_[:0]
instead.
How Has This Been Tested?
TBD CI
Types of changes
- Bug fix (non-breaking change which fixes an issue)
Reviewers
Merge request reports
Activity
They're
.npz
files, so unless you load them withallow_pickle=True
, they're limited to Numpy arrays with native numpy data, not arbitrary Python objects. We don't allow pickles there at the moment, although of course we could change that in the future.I suppose
allow_pickle
could be acceptable from a safety point of view given that we only load the.npz
files we baked ourselves. Is aslice
on X and Y sufficiently general or should we just bake a mask?Edited by David HammerYup, I don't think there's a security issue. I'd still be a little bit reluctant to use pickle because it's harder to work out what types the things we load are, and - while slices are fine - it's easy to save something in a pickle which doesn't load properly with a newer version of Python or a dependency.
changed milestone to %3.16.0
mentioned in commit 557b568b