You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LaplacianThickness() trait an error The 'output_image' trait of a LaplacianThicknessOutputSpec instance must be a pathlike object or string representing an existing file, but a value of '/input/wc2sub-1_struct-Flair_thickness.nii' <class 'str'> was specified.
Actual behavior
doesn't the output thickness file if called with from nipype.interfaces.ants import LaplacianThickness, with an error The 'output_image' trait of a LaplacianThicknessOutputSpec instance must be a pathlike object or string representing an existing file, but a value of '/input/wc2sub-1_struct-Flair_thickness.nii' <class 'str'> was specified.
Expected behavior
produces thickness file. If it called with function in shell, not in python:
LaplacianThickness wc2sub-1_struct-Flair.nii wc1sub-1_struct-Flair.nii thickness_sub-1_struct-Flair.nii,
output file successfully produced.
Summary
LaplacianThickness() trait an error The 'output_image' trait of a LaplacianThicknessOutputSpec instance must be a pathlike object or string representing an existing file, but a value of '/input/wc2sub-1_struct-Flair_thickness.nii' <class 'str'> was specified.
Actual behavior
doesn't the output thickness file if called with from nipype.interfaces.ants import LaplacianThickness, with an error The 'output_image' trait of a LaplacianThicknessOutputSpec instance must be a pathlike object or string representing an existing file, but a value of '/input/wc2sub-1_struct-Flair_thickness.nii' <class 'str'> was specified.
Expected behavior
produces thickness file. If it called with function in shell, not in python:
LaplacianThickness wc2sub-1_struct-Flair.nii wc1sub-1_struct-Flair.nii thickness_sub-1_struct-Flair.nii,
output file successfully produced.
How to replicate the behavior
Script/Workflow details
cort_thick = LaplacianThickness()
cort_thick.inputs.input_wm = 'wc2sub-1_struct-Flair.nii'
cort_thick.inputs.input_gm = 'wc1sub-1_struct-Flair.nii'
cort_thick.inputs.output_image = 'thickness_sub-1_struct-Flair.nii'
cort_thick.run()
print(cort_thick.cmdline)
#cort_thick.inputs.output_image = 'thickness_sub-1_struct-Flair.nii'
#print(cort_thick.cmdline)
Please put URL to code or code here (if not too long).
Platform details:
Execution environment
Choose one
The text was updated successfully, but these errors were encountered: