Missing field error in nilearn with nifti-2

Hi All! I am trying to run a decoding analysis in nilearn and hitting a snag at the following line:

Code: run fmri_trans = nifti_masker.fit_transform(fmri_subjs)
Error: ValueError: no field of name glmax

As per recommendations from this thread, I’m using NIFTI-2 formatted images, which don’t have a glmax field in the header. Is there a way to add the required field, or get around the error?


That’s a bug. Could you please add an issue on the tracker with code to reproduce it, and we’ll fix the problem and release a version as soon as possible.

Thanks-- I’ll add it to the tracker with my code!