Skip to content

Commit

Permalink
replace usage of copy_arrays=True with memmap=False (#8660)
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharyburnett authored Aug 2, 2024
1 parent 5ac15be commit e34f4d8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,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]

- Refactored separate modes into submodules instead of inheriting from a base class.
Moved non-JWST-specific code to stcal. [#8613]

Expand Down
2 changes: 1 addition & 1 deletion jwst/lib/set_telescope_pointing.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e34f4d8

Please sign in to comment.