Skip to content

Commit

Permalink
changed header access methods
Browse files Browse the repository at this point in the history
  • Loading branch information
drcc committed Sep 5, 2013
1 parent 19f82a9 commit 66e4001
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion make_image_from_bin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 66e4001

Please sign in to comment.