Skip to content

[Bug] Type error in afni's CenterMass #2213

Closed
@salma1601

Description

@salma1601
from nipype.interfaces import afni
a = afni.CenterMass()
a.inputs.in_file = 'anat.nii.gz'
a.inputs.cm_file = 'cm.txt'
a.run()

throws an error because single line file cm.txt is not loaded in an array of length one

TypeError: 'numpy.float64' object is not iterable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions