[Neuroimaging] Nibabel API change - always read as float

Matthew Brett matthew.brett at gmail.com
Wed Jul 8 16:10:06 CEST 2015

Sorry, I should clarify:

On Wed, Jul 8, 2015 at 3:05 PM, Matthew Brett <matthew.brett at gmail.com> wrote:
> Hi,
> On Wed, Jul 8, 2015 at 3:29 AM, Satrajit Ghosh <satra at mit.edu> wrote:
>> hi matthew,
>> i agree, but is there a way to allow for keeping the datatype intact? are we
>> agreeing that a keyword is necessary, and dtype=None will keep the original
>> datatype.
> There is no current way of returning data with the on-disk datatype
> when then slope, intercept are not equivalent to (1, 0).

I mean - there is no current way do to that from `img.get_data()`, and
I we haven't thus far proposed that you should be able to do that.
You can get the unscaled data by using `img.dataobj.get_unscaled()`.

See you,


More information about the Neuroimaging mailing list