Does mrcfile read maps using data dtype according to ccp4 mode when memory mapping is used?
Closed this issue · 2 comments
aliaksei-chareshneu commented
Dear all,
Could you tell me please if mrcfile read map with data dtype according to ccp4 mode, when memory mapping is used?
E.g., if I do:
with mrcfile.mmap(map_file) as mrc_original:
data: np.memmap = mrc_original
where map_file
is map with certain mode, will the data
have the dtype corresponding to that mode?
colinpalmer commented
Yes, the dtype is always set according to the map mode, and there should be no difference between the dtypes when the file is opened normally or with mmap.
aliaksei-chareshneu commented
@colinpalmer, thanks a lot.