sanitize_slices

astropy.wcs.wcsapi.sanitize_slices(slices, ndim)[source]

Given a slice as input sanitise it to an easier to parse format.format

This function returns a list ndim long containing slice objects (or ints).