Skip to content

Conversation

Utrosa
Copy link

@Utrosa Utrosa commented Aug 26, 2025

Summary

Fixes # .

Updated the _list_outputs method in nipype.interfaces.spm.base to handle SPM version 25 correctly. Previously, the code only checked for SPM12 when determining the output file type (nii vs img). Now, both SPM12 and SPM25 are treated as using nii format.

List of changes proposed in this PR (pull-request)

  • Modified _list_outputs to use:
    python outtype = "nii" if self.version.split(".")[0] in ["12", "25"] else "img"
  • Verified that output type defaults to "nii" for SPM version 25.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant