Open JoffJones opened 3 years ago
HI @JoffJones I just a similar error when using the same function in a pipeline; I have done a modification in the way the SPM batch is called. I have done a version on my fork version : https://github.com/davidmeunier79/nipype/tree/bug_apply_inv and a PR: https://github.com/nipy/nipype/pull/3326
Can you have a check and let me know if that solved your issue as well? Thanks
Thanks for taking this on, @davidmeunier79. One question is whether this has always been a bug or if SPM has changed its input requirements at some version. Nipype generally tries to accommodate multiple versions of the wrapped tools, not just the latest, so it would be good to confirm the range of versions that the current and proposed interface work for.
@effigies yes indeed, but I have no clue how it was earlier. FYI, the inspiration for the debug was from this post on the SPM list: https://www.jiscmail.ac.uk/cgi-bin/webadmin?A2=SPM;c03e7a18.1707
Summary
Setting the minimal inputs for spm.utils.ApplyInverseDeformation() gives the error: Item 'Image to base inverse on', field 'val': Number of matching files (0) less than required (1). Item defs: No field(s) named
Actual behavior
RuntimeError Traceback (most recent call last)