From dd921c5d990f3b69e03781eab822b2a0023bc538 Mon Sep 17 00:00:00 2001 From: milesagraham Date: Fri, 17 May 2024 20:39:00 +0100 Subject: [PATCH] fixed incorrect mrc data type (#11) --- src/ttmask/cylinder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ttmask/cylinder.py b/src/ttmask/cylinder.py index ecd2469..2a64311 100644 --- a/src/ttmask/cylinder.py +++ b/src/ttmask/cylinder.py @@ -19,7 +19,7 @@ def cylinder( c = boxsize // 2 center = np.array([c, c, c]) - mask = np.zeros(shape=(boxsize, boxsize, boxsize)) + mask = np.zeros(shape=(boxsize, boxsize, boxsize), dtype=np.float32) # 3d positions of all voxels positions = np.indices([boxsize, boxsize, boxsize])