Skip to content

Commit

Permalink
Merge pull request #826 from neutrinoceros/numpy2_doctests
Browse files Browse the repository at this point in the history
DOC: adapt a docstest for numpy 2 (representation of scalars changed)
  • Loading branch information
mwcraig authored Apr 12, 2024
2 parents 5c7abc7 + 349ed6e commit 6927390
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 @@ -182,7 +182,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
>>> float(round(uncertainty_ratio, 5)) # doctest: +FLOAT_CMP
0.2
>>> result.unit
Unit("adu electron")
Expand Down

0 comments on commit 6927390

Please sign in to comment.