nipy/nibabel — pull request #257 by matthew-brett (2014-09-02 14:56:43+00:00)
Title: MRG: allow more ways to specify data dtype

A small refactoring to allow this:

hdr = nib.Nifti1Header()
hdr.set_data_dtype(float)

and this:

hdr.set_data_dtype('f8')

Previously these would both raise an error.