Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Error with spm.coregister on Windows (TypeError: environment can only contain strings) #2958
I am running into the following error when attempting to use spm.Coregister() on Windows.
No error. This works fine on Linux (I am trying to port a command line tool I wrote to Windows).
How to replicate the behavior
Run the example code below (with any two nifti file to be coregistered).
from nipype.interfaces import spm coreg = spm.Coregister() coreg.inputs.target = "C:/Users/jerem/code/test/t1.nii" coreg.inputs.source = "C:/Users/jerem/code/test/spect.nii" coreg.terminal_output = 'none' coreg.run()
I'm running nipype in a fresh conda env with nothing else installed.
This issue also seems related: #2509