Skip to content

Commit

Permalink
Merge pull request #61 from hanjinliu/large-image
Browse files Browse the repository at this point in the history
Fix overflow error when file size is large
  • Loading branch information
colinpalmer authored Jul 18, 2024
2 parents bcf5c15 + 3c9a668 commit 9cef967
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mrcfile/mrcmemmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def _read_data(self):
def _open_memmap(self, dtype, shape):
"""Open a new memmap array pointing at the file's data block."""
acc_mode = 'r' if self._read_only else 'r+'
header_nbytes = self.header.nbytes + self.header.nsymbt
header_nbytes = int(self.header.nbytes + self.header.nsymbt)

self._iostream.flush()
try:
Expand Down

0 comments on commit 9cef967

Please sign in to comment.