Refactor the extraction of a slice of an array
- Add a
mpdaf.obj.objs.circular_bounding_boxfunction to do this consistently -
Cube.subcubewas missing one pixel at the edge of the extracted array if the extracted size was the same as the cube's shape. For this one, useastropy.nddata.overlap_sliceswhich return the slices for the input and output arrays. - Add tests for the
objsmodule. (+ other minor changes)