[NiPype] spm_normalise error

63 views
Skip to first unread message

Dan

unread,
Jul 25, 2012, 4:43:05 PM7/25/12
to nipy...@googlegroups.com
Hello,

When I try to use the SPM Normalize interface, specifically the write_preserve input option, I get an error from MATLAB:

Standard error:
MATLAB code threw an exception:
Undefined function or variable 'False'.

I'm guessing this is because it is expecting either a 1 or a 0 for that field instead of "True" or "False." However, if I try to put a 0 in that field, I get an error from Traits, saying it must be a boolean.

Changing the NormalizeInputSpec from Bool to Int seems to fix this problem. I suppose it also opens the possibility of entering an integer other than 1 or 0, but I think handing that down to MATLAB to deal with isn't an issue since MATLAB would produce an error in that situation.

Best,
Dan

Chris Filo Gorgolewski

unread,
Jul 25, 2012, 4:57:51 PM7/25/12
to nipy...@googlegroups.com
Let's try a more global approach. Try this branch:
https://github.com/chrisfilo/nipype.git (inputs stay as bools).

Best,
Chris
> --
>
>
>

Dan

unread,
Jul 25, 2012, 5:19:36 PM7/25/12
to nipy...@googlegroups.com
I'm getting the same error. What do you mean by more global approach?

Chris Filo Gorgolewski

unread,
Jul 25, 2012, 5:38:07 PM7/25/12
to nipy...@googlegroups.com
Apologies - I pasted a wrong URL:
https://github.com/chrisfilo/nipype/tree/fix/spm_bool

By global I mean changes in the SPMCommand class - all Boolean inputs
should be converted to 1,0
> --
>
>
>
Message has been deleted

Dan

unread,
Jul 26, 2012, 2:44:27 PM7/26/12
to nipy...@googlegroups.com
Still the same error: MATLAB is looking for a variable called "False"

Chris Filo Gorgolewski

unread,
Jul 26, 2012, 2:48:03 PM7/26/12
to nipy...@googlegroups.com
I forgot to call super - try it now (I have updated the branch).
> --
>
>
>

Dan

unread,
Jul 26, 2012, 4:26:05 PM7/26/12
to nipy...@googlegroups.com
Works now. Thanks!

On an unrelated note, is there a better way to download things from git? Up to now, I've been manually going into the modified directory, downloading the modified file and replacing the file on my own system with the updated version. I feel like there should be an easier way.
Reply all
Reply to author
Forward
0 new messages