Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

default memmap parameter to False #1801

Merged

Conversation

zacharyburnett
Copy link
Member

@zacharyburnett zacharyburnett commented Jul 15, 2024

based on (and blocked by) #1800

Description

default memmap=False

Checklist:

  • pre-commit checks ran successfully
  • tests ran successfully
  • for a public change, a changelog entry was added
  • for a public change, documentation was updated
  • for any new features, unit tests were added

@zacharyburnett zacharyburnett added this to the 4.0.0 milestone Jul 15, 2024
@zacharyburnett zacharyburnett self-assigned this Jul 15, 2024
@zacharyburnett zacharyburnett linked an issue Jul 15, 2024 that may be closed by this pull request
@zacharyburnett zacharyburnett force-pushed the default/memmap_false branch 4 times, most recently from 29aafc6 to 9bb044f Compare October 31, 2024 16:34
@zacharyburnett zacharyburnett marked this pull request as ready for review October 31, 2024 16:35
@zacharyburnett zacharyburnett requested a review from a team as a code owner October 31, 2024 16:35
@braingram
Copy link
Contributor

Unit test failures are real. It looks like there are more tests that need updated for the new default.

@braingram
Copy link
Contributor

#1852 was merged and introduced the "what's new" page for asdf 4.0. Would you update this PR and add an entry describing the default change:
https://asdf.readthedocs.io/en/latest/asdf/whats_new.html#new-defaults
I'd say let's put this change first in that section given the scope of this change.

asdf/_asdf.py Outdated Show resolved Hide resolved
docs/asdf/whats_new.rst Outdated Show resolved Hide resolved
@@ -976,7 +976,7 @@ def test_memmap_write(tmp_path):
tmpfile = str(tmp_path / "data.asdf")
tree = {"data": np.zeros(100)}

with asdf.AsdfFile(tree) as af:
with asdf.AsdfFile(tree, memmap=False) as af:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this needed?

Suggested change
with asdf.AsdfFile(tree, memmap=False) as af:
with asdf.AsdfFile(tree) as af:

changes/1801.general.rst Outdated Show resolved Hide resolved
zacharyburnett and others added 3 commits November 8, 2024 12:55
Co-authored-by: Brett Graham <[email protected]>
Co-authored-by: Brett Graham <[email protected]>
Co-authored-by: Brett Graham <[email protected]>
@braingram
Copy link
Contributor

I think this PR should be good to go once the lines mentioned in #1801 (comment) are removed.

docs/asdf/whats_new.rst Outdated Show resolved Hide resolved
Co-authored-by: Brett Graham <[email protected]>
Copy link
Contributor

@braingram braingram left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks again for taking this on!

@zacharyburnett zacharyburnett merged commit 8ab4717 into asdf-format:main Nov 9, 2024
48 of 49 checks passed
@zacharyburnett zacharyburnett deleted the default/memmap_false branch November 9, 2024 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove copy_arrays and switch memmap default to False
2 participants