From 2e00b2f642f6bda68a8115bcc0223a924b535ea2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Robert?= Date: Sun, 5 May 2024 09:56:38 +0200 Subject: [PATCH] DOC: adapt a docstest for numpy 2 (representation of scalars changed) (round 2) --- ccdproc/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ccdproc/core.py b/ccdproc/core.py index 863164de..81236766 100644 --- a/ccdproc/core.py +++ b/ccdproc/core.py @@ -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. @@ -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