Closed FrankZijlstra closed 11 months ago
Hi @FrankZijlstra , Sorry for the delay in getting around to this. Could you see if the fix that you recommended, implemented in the bf/largefileswin branch works?
Seems to work fine!
While I have your attention, there is another small, very rare bug. On line
https://github.com/wtclarke/pymapvbvd/blob/fb188f05c90c8ad4b074dca413d57abcfcb157bf/mapvbvd/mapVBVD.py#L163
the check for n_acq == len(filePos)
should not be there (it's not there in the MATLAB mapvbvd), as it will drop the last readout when the size of filePos
is exactly a multiple of allocSize
. Instead, on line
https://github.com/wtclarke/pymapvbvd/blob/fb188f05c90c8ad4b074dca413d57abcfcb157bf/mapvbvd/mapVBVD.py#L143 change the >
to a >=
(i.e. reserve space for the last readout).
Great, both these issues should be fixed by PR #41 and will be in version 0.5.6
.
Thanks for taking the time to hunt these subtle bugs down and report them!
In
twix_map_obj.readData
,mem
is cast toint
, which on Windows defaults toint32
. This fails when data indices are larger than 2**31 - 1, i.e. on files larger than 2GB. The cast should be explicitly specifynp.int64
.