From fe7c82ede337b98261a57b9d366049661a549ccf Mon Sep 17 00:00:00 2001 From: alncat Date: Mon, 22 Dec 2025 15:45:52 +0800 Subject: [PATCH] add support for mrc files in float16 format from WarpTools --- pytom/agnostic/io.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pytom/agnostic/io.py b/pytom/agnostic/io.py index bd49536e..5f285a71 100755 --- a/pytom/agnostic/io.py +++ b/pytom/agnostic/io.py @@ -1717,6 +1717,8 @@ def read_mrc(filename, order='F', keepnumpy=False, deviceID=None, dtype=None): dt_data = np.dtype('complex32') elif dt == 6: # float complex dt_data = np.dtype('uint16') + elif dt == 12: + dt_data = np.dtype('float16') else: raise Exception("Data type not supported yet!")