Skip to content

Commit

Permalink
DOC: adapt a docstest for numpy 2 (representation of scalars changed)
Browse files Browse the repository at this point in the history
  • Loading branch information
neutrinoceros committed Apr 10, 2024
1 parent 9d32553 commit 439396f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/ccddata.rst
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ is between two `~astropy.nddata.CCDData` objects.
>>> result = ccd.multiply(0.2 * u.adu)
>>> uncertainty_ratio = result.uncertainty.array[0, 0]/ccd.uncertainty.array[0, 0]
>>> round(uncertainty_ratio, 5) # doctest: +FLOAT_CMP
0.2
np.float64(0.2)
>>> result.unit
Unit("adu electron")

Expand Down

0 comments on commit 439396f

Please sign in to comment.