Skip to content

Commit

Permalink
Use memmap=False instead of copy_arrays=False when opening asdf
Browse files Browse the repository at this point in the history
… files (#339)
  • Loading branch information
wtbarnes authored Dec 9, 2024
1 parent b74ecc0 commit f6188e8
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions fiasco/tests/idl/helpers.py
Original file line number Diff line number Diff line change
@@ -21,10 +21,8 @@ def get_idl_test_output_filepath(name, version):


def read_idl_test_output(name, version, keys=None):
# NOTE: Importing here to avoid it as a hard dependency for running tests
import asdf
file_path = get_idl_test_output_filepath(name, version)
with asdf.open(file_path, copy_arrays=True) as af:
with asdf.open(file_path, memmap=True) as af:
if keys is None:
keys = af.tree.keys()
output = {k: af.tree[k] for k in keys}
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -55,7 +55,7 @@ all = ["fiasco"]
test = [
"fiasco[all]",
"asdf-astropy",
"asdf",
"asdf>=3.1",
"matplotlib",
"pytest-astropy",
"pytest-cov",
@@ -69,7 +69,7 @@ docs =[
"fiasco[all]",
"aiapy",
"asdf-astropy",
"asdf",
"asdf>=3.1",
"hissw",
"pydata-sphinx-theme",
"sphinx-automodapi",

0 comments on commit f6188e8

Please sign in to comment.