Skip to content

Commit

Permalink
replace usages of copy_arrays with memmap (#360)
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharyburnett committed Jul 23, 2024
1 parent a001656 commit 96026c9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 2 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

- Recursively convert all meta attributes during model casting. [#352]

- replace usages of ``copy_arrays`` with ``memmap`` [#360]

0.20.0 (2024-05-15)
===================

Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ classifiers = [
"Programming Language :: Python :: 3",
]
dependencies = [
"asdf >=2.15.0",
"asdf >=3.1.0",
"asdf-astropy >=0.5.0",
"gwcs >=0.18.1",
"gwcs >=0.19.0",
"numpy >=1.22",
"astropy >=5.3.0",
"rad >= 0.20.0",
Expand Down
3 changes: 1 addition & 2 deletions src/roman_datamodels/datamodels/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
__all__ = ["rdm_open"]


def _open_path_like(init, memmap=False, **kwargs):
def _open_path_like(init, **kwargs):
"""
Attempt to open init as if it was a path-like object.
Expand All @@ -47,7 +47,6 @@ def _open_path_like(init, memmap=False, **kwargs):
-------
`asdf.AsdfFile`
"""
kwargs["copy_arrays"] = not memmap

try:
asdf_file = asdf.open(init, **kwargs)
Expand Down

0 comments on commit 96026c9

Please sign in to comment.