Skip to content

Commit

Permalink
Merge pull request #829 from neutrinoceros/numpy2/doctests_2
Browse files Browse the repository at this point in the history
DOC: adapt a docstest for numpy 2 (representation of scalars changed) (round 2)
  • Loading branch information
mwcraig committed May 5, 2024
2 parents ea7cde7 + 2e00b2f commit 68e90da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ccdproc/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ def trim_image(ccd, fits_section=None):
>>> trimmed.shape
(100, 90)
>>> trimmed.data[0, 0] = 2
>>> arr1.data[0, 0]
>>> float(arr1.data[0, 0])
1.0
This both trims *and makes a copy* of the image.
Expand All @@ -540,7 +540,7 @@ def trim_image(ccd, fits_section=None):
>>> not_really_trimmed = arr1[:, :90]
>>> not_really_trimmed.data[0, 0] = 2
>>> arr1.data[0, 0]
>>> float(arr1.data[0, 0])
2.0
In this case, ``not_really_trimmed`` is a view of the underlying array
Expand Down

0 comments on commit 68e90da

Please sign in to comment.