healpix_geo.slices.Slice.as_pyslice#

Slice.as_pyslice()#

Convert to a builtin slice object

Note: requires the size as input (the underlying PySlice object does not support None arguments)