diff --git a/CHANGELOG.rst b/CHANGELOG.rst index fb83b2834..932670410 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -22,7 +22,7 @@ New Features - Added `~ndcube.NDCube.quantity` attribute to `~ndcube.NDCube` to return the data array with in the cube with the physical units stored in the `~ndcube.NDCube.unit` attribute. (`#677 `__) - Enable `~ndcube.NDCube` to be raised to a power. (`#678 `__) - Added `ndcube.NDCube.shape` as a replacement for "dimensions". (`#684 `__) -- Enable rtruediv on`~ndcube.NDCube` such that a user can now do 1/`~ndcube.NDCube`. (`#685 `__) +- Enable rtruediv on `~ndcube.NDCube` such that a user can now do 1/ `~ndcube.NDCube`. (`#685 `__) - Add a ``keepdims=False`` kwarg to `~ndcube.NDCube.crop` and `~ndcube.NDCube.crop_by_values` setting to true keeps length-1 dimensions default behavior drops these dimensions. (`#732 `__) - When calling :meth:`ndcube.NDCubeBase.axis_world_coords` or :meth:`ndcube.NDCubeBase.axis_world_coords_values` with a specific axis or axes specified, the methods now avoid doing calculations for any other uncorrelated axes, offering diff --git a/docs/nitpick-exceptions b/docs/nitpick-exceptions index 2b1e80bbc..42e4f8cbb 100644 --- a/docs/nitpick-exceptions +++ b/docs/nitpick-exceptions @@ -18,3 +18,5 @@ py:class None. Remove all items from D. py:class a shallow copy of D py:class v, remove specified key and return the corresponding value. py:class None. Update D from mapping/iterable E and F. +# Comes from astropy? psf +py:obj ndarray diff --git a/ndcube/ndcube.py b/ndcube/ndcube.py index 5f5f4ee40..675f95255 100644 --- a/ndcube/ndcube.py +++ b/ndcube/ndcube.py @@ -407,11 +407,12 @@ def __init__(self, data, wcs=None, uncertainty=None, mask=None, meta=None, @property def data(self): """ - `~numpy.ndarray`-like : The stored dataset. + `~numpy.ndarray` - like + The stored dataset. Notes ----- - It is possible to set the ``.data`` attribute on a `NDCube` with an + It is possible to set the ``.data`` attribute on a `~ndcube.NDCube` with an array-like object of the same shape. However, this is really only intended for replacing the data with a different object representing the same physical data as no other properties of the cube will be