ccpem/mrcfile

Does mrcfile read maps using data dtype according to ccp4 mode when memory mapping is used?

Closed this issue · 2 comments

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?

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.