Skip to content

Commit 93464e7

Browse files
committed
dtype fix
1 parent bbf5d7f commit 93464e7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pygalmesh/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ def save_inr(vol, h, fname):
310310
"uint16": ("unsigned fixed", 16),
311311
"float32": ("float", 32),
312312
"float64": ("float", 64),
313-
}[vol.dtype]
313+
}[vol.dtype.name]
314314

315315
header = (
316316
"#INRIMAGE-4#{8:s}\nXDIM={0:d}\nYDIM={1:d}\nZDIM={2:d}\nVDIM=1\nTYPE={3:s}\n"

0 commit comments

Comments
 (0)