nipype icon indicating copy to clipboard operation
nipype copied to clipboard

spm calculate vdm -'No such file or directory ..... for output 'vdm' of a FieldMap interface

Open kristian1801 opened this issue 4 years ago • 0 comments

Summary

I am running the spm interface and trying to calculate the vdm using the FieldMap function. I have given the correct inputs and the error message tells me that there exists no file or dir to a specific file where the program adds vdm5_sc to my phase.nii file. I would think that calculating the vdm5_scphase.nii file is the behaviour of the function, but it tells me that this file should already exist, which does not make sense to me.

Actual behavior

FileNotFoundError: No such file or directory '/users/kristianlarsen/python/ID1/phase_0/vdm5_scID1_17_e2_ph.nii' for output 'vdm' of a FieldMap interface

Expected behavior

I thought the function would create the vdm file for me

Script/Workflow details

fm = spm.FieldMap(matchvdm = False) fm.inputs.phase_file = phaseDir fm.inputs.magnitude_file = magDir fm.inputs.echo_times = (4.92, 7.38) fm.inputs.blip_direction = -1 fm.inputs.total_readout_time = asl_json.get('TotalReadoutTime') * 1000 fm.inputs.epi_file = func_file fm.inputs.template = temp_file fm.run()

Platform details:

{'pkg_path': '/indirect/users/kristianlarsen/python/python/nipype',
 'commit_source': 'installation',
 'commit_hash': '0289137',
 'nipype_version': '1.6.1',
 'sys_version': '3.6.12 (default, Dec 02 2020, 09:44:23) [GCC]',
 'sys_executable': '/usr/bin/python3',
 'sys_platform': 'linux',
 'numpy_version': '1.17.3',
 'scipy_version': '1.2.0',
 'networkx_version': '2.5.1',
 'nibabel_version': '3.2.1',
 'traits_version': '6.2.0'}

I hope someone can point me in direction of a solution.

kristian1801 avatar Sep 29 '21 12:09 kristian1801