You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Support Subtract and Division of NDCube by NDData (#880)
* Enable subtraction of NDCube and NDData.
* Enable division of NDCube by NDData.
* Add 880 changelog.
* Add NDCube-NDData arithmetic tests for subtraction and division that preserve dask laziness.
* Remove in-place modification in NDCube arithmetic subtraction.
* Remove duplicate test.
* Fix bug whereby adding unitful NDCube and NDData did not output result with underlying arrays as dask.
* Add more tests of dask-backed arithmetic operations.
* Remove duplicate test.
* First commit of docs explaining arithmetic operations.
* Next commit on docs explaining arithmetic operations.
* Rename arithmetic operations docs file and next commit in arithmetic docs.
* Fix codestyle.
* Fix bugs in arithmetic docs.
* Next commit on arithmetic docs.
* First complete draft of arithmetic docs.
* Updates to arithmetic docs.
* Updates to arithmetic docs.
* Fix bug raising error when two coordinate aware objects are combined via arithmetic operations.
* Updates arithmetic docs.
* Update arithmetic docs.
* Fix undefined variable in arithmetic docs.
* More fixes to arithmetic docs.
* doc formatting fix.
* Fix test of to_nddata to ndcube.
* Mention motivating use case of arithmetic operations in NDCube.to_nddata docstring.
* Apply suggestions from code review
Co-authored-by: Stuart Mumford <[email protected]>
* Apply suggestions from code review
* Whoops
* Move ``to_nddata`` specific docs to ``to_nddata`` docstring
* Fix doc error
* Fix ``to_nddata`` docs
* Show warning about dropping uncertainty
---------
Co-authored-by: Stuart Mumford <[email protected]>
Fix bug where error was returned rather than raised with trying to perform arithmetic operation between `~ndcube.NDCube` and an object whose WCS attribute is not ``None``.
Enable subtraction and division of `~ndcube.NDCube` by an `~astropy.nddata.NDData` instance (without a WCS), including uncertainty, mask and unit support.
0 commit comments