Skip to content

Commit

Permalink
Ensure native byte order for memmap. (#1354)
Browse files Browse the repository at this point in the history
* Ensure native byte order for memmap.

* Update changelog.

* Update CHANGES.rst

Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
  • Loading branch information
cmarmo and ogrisel committed Oct 21, 2022
1 parent 5d0cf09 commit 854458e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGES.rst
Expand Up @@ -4,7 +4,8 @@ Latest changes
In development
--------------

- TODO
- Ensure native byte order for memmap arrays in `joblib.load`.
https://github.com/joblib/joblib/issues/1353

Release 1.2.0
-------------
Expand Down
2 changes: 1 addition & 1 deletion joblib/numpy_pickle.py
Expand Up @@ -229,7 +229,7 @@ def read_mmap(self, unpickler):
)
warnings.warn(message)

return marray
return _ensure_native_byte_order(marray)

def read(self, unpickler):
"""Read the array corresponding to this wrapper.
Expand Down

0 comments on commit 854458e

Please sign in to comment.