From 33bbd783e3493f6e2c1d100f5f55e56dfaa60ce6 Mon Sep 17 00:00:00 2001 From: zacharyburnett Date: Thu, 18 Jul 2024 09:30:50 -0400 Subject: [PATCH 1/2] replace usage of `copy_arrays=True` with `memmap=False` --- jwst/lib/set_telescope_pointing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jwst/lib/set_telescope_pointing.py b/jwst/lib/set_telescope_pointing.py index 06dfd587a3..111b415ce3 100644 --- a/jwst/lib/set_telescope_pointing.py +++ b/jwst/lib/set_telescope_pointing.py @@ -357,7 +357,7 @@ def from_asdf(cls, asdf_file): if isinstance(asdf_file, asdf.AsdfFile): transforms = asdf_file.tree['transforms'] else: - with asdf.open(asdf_file, copy_arrays=True, lazy_load=False) as af: + with asdf.open(asdf_file, memmap=False, lazy_load=False) as af: transforms = af.tree['transforms'] return cls(**transforms) From a2a4e3a5228d137704e57ba6e64ff1943f1b36bb Mon Sep 17 00:00:00 2001 From: zacharyburnett Date: Thu, 18 Jul 2024 09:33:00 -0400 Subject: [PATCH 2/2] add change log entry --- CHANGES.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CHANGES.rst b/CHANGES.rst index c581f1cb4c..d1443bbccc 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -26,6 +26,11 @@ outlier_detection - Fixed failures due to a missing ``wcs.array_shape`` attribute when the ``outlier_detection`` step was run standalone using e.g. ``strun`` [#8645] +set_telescope_pointing +---------------------- + +- replace usage of ``copy_arrays=True`` with ``memmap=False`` [#8660] + stpipe ------