From 66e4001dc58d6fd262b9cf9828f58425d28e4eab Mon Sep 17 00:00:00 2001 From: drcc Date: Thu, 5 Sep 2013 16:23:46 -0400 Subject: [PATCH] changed header access methods --- make_image_from_bin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/make_image_from_bin.py b/make_image_from_bin.py index 27c91fa..d07157c 100755 --- a/make_image_from_bin.py +++ b/make_image_from_bin.py @@ -88,7 +88,7 @@ def make_image_from_bin( image, binfile, mask ): imdat[imdat>0]=short(a[0:sum(imdat)].flatten()) # write out the image as nifti - thdr=nim.header + thdr=nim.get_header() thdr['scl_slope']=1 nim_out = nb.Nifti1Image(imdat, nim.get_affine())