From 739dba2ba1df676691219be794158c73001d5def Mon Sep 17 00:00:00 2001 From: zacharyburnett Date: Fri, 25 Oct 2024 12:04:45 -0400 Subject: [PATCH] default `memmap=False` --- asdf/_asdf.py | 9 +++++---- changes/1801.general.rst | 1 + 2 files changed, 6 insertions(+), 4 deletions(-) create mode 100644 changes/1801.general.rst diff --git a/asdf/_asdf.py b/asdf/_asdf.py index 3a5d4a3fb..8eb220b3e 100644 --- a/asdf/_asdf.py +++ b/asdf/_asdf.py @@ -57,7 +57,8 @@ def __init__( extensions=None, version=None, ignore_unrecognized_tag=False, - memmap=True, + ignore_implicit_conversion=NotSet, + memmap=False, lazy_load=True, custom_schema=None, ): @@ -88,7 +89,7 @@ def __init__( memmap : bool, optional When `True`, when reading files, attempt to memmap underlying data - arrays when possible. Defaults to ``True``. + arrays when possible. Defaults to ``False``. lazy_load : bool, optional When `True` and the underlying file handle is seekable, data @@ -1510,7 +1511,7 @@ def open_asdf( extensions=None, ignore_unrecognized_tag=False, _force_raw_types=False, - memmap=True, + memmap=False, lazy_tree=NotSet, lazy_load=True, custom_schema=None, @@ -1549,7 +1550,7 @@ def open_asdf( memmap : bool, optional When `True`, when reading files, attempt to memmap underlying data - arrays when possible. Defaults to ``True``. + arrays when possible. Defaults to ``False``. lazy_load : bool, optional When `True` and the underlying file handle is seekable, data diff --git a/changes/1801.general.rst b/changes/1801.general.rst new file mode 100644 index 000000000..ca218ddc5 --- /dev/null +++ b/changes/1801.general.rst @@ -0,0 +1 @@ +set ``memmap=False`` by default