Skip to content

Commit 8ca5c5b

Browse files
committed
Fix bugs in arithmetic docs.
1 parent 4ee0a50 commit 8ca5c5b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/explaining_ndcube/arithmetic.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ If, however, we have an `~ndcube.NDCube` with a unit assigned,
104104
>>> cube_unitful = NDCube(cube, unit=u.ct)
105105
106106
then adding or subtracting an array or unitless number will raise an error.
107-
In such cases, we must use a `~astropy.unit.Quantity` with a compatible unit:
107+
In such cases, we must use a `~astropy.units.Quantity` with a compatible unit:
108108

109109
.. code-block:: python
110110
@@ -135,8 +135,8 @@ An `~ndcube.NDCube` can be multiplied and divided by numbers, arrays, and `~astr
135135
These work similarly to addition and subtraction with a few minor differences:
136136
- The uncertainties of the resulting `~ndcube.NDCube` are scaled by the same factor as the data.
137137
- Classes with different units can be combined.
138-
- e.g. an `~ndcube.NDCube` with a unit of counts divided by an `~astropy.units.Quantity` with a unit is seconds will result in an `~ndcube.NDCube` with a unit of counts per second.
139-
- This also holds for cases were unitful and unitless classes can be combined. In such cases, the unit of the resulting `~ndcube.NDCube` will be the same as that of the unitful object.
138+
* e.g. an `~ndcube.NDCube` with a unit of counts divided by an `~astropy.units.Quantity` with a unit is seconds will result in an `~ndcube.NDCube` with a unit of counts per second.
139+
* This also holds for cases were unitful and unitless classes can be combined. In such cases, the unit of the resulting `~ndcube.NDCube` will be the same as that of the unitful object.
140140

141141
Below are some examples.
142142

0 commit comments

Comments
 (0)