Nipype : Matlab node being always re-run in workflow

Hello nipype expert!

I did some matlab interfaces using the model found here (http://nipype.readthedocs.io/en/latest/devel/matlab_interface_devel.html ). I actually tested both exemples, but each time I am re-runing my worflow, the matlab nodes always re-run.
I used the logger library, and it appears that the .json file found in the matlab node is different from the one read by the hash_exist function, so it concludes that the hash doesn’t exist and re-run the node.

This is the output I have:

170328-17:09:27,245 workflow INFO:
Executing node convertVTK2txt in dir: /Users/me/DataAndResults/Nipype_tests/test_wf_matlab_node/convertVTK2txt
170328-17:09:27,245 workflow DEBUG:
[’_0x57a0736e4e427b97fa434b340fb27c83.json’, ‘_inputs.pklz’, ‘_node.pklz’, ‘report’, ‘parcellationS1_1_merged_59_maths_maths_res_mesh_points.txt’, ‘parcellationS1_1_merged_59_maths_maths_res_mesh_tri.txt’, ‘parcellationS2_1_merged_59_maths_maths_res_mesh_points.txt’, ‘parcellationS2_1_merged_59_maths_maths_res_mesh_tri.txt’, ‘parcellationS3_1_merged_59_maths_maths_res_mesh_points.txt’, ‘parcellationS3_1_merged_59_maths_maths_res_mesh_tri.txt’, ‘parcellationS4_1_merged_59_maths_maths_res_mesh_points.txt’, ‘parcellationS4_1_merged_59_maths_maths_res_mesh_tri.txt’, ‘pyscript.m’, ‘result_convertVTK2txt.pklz’]
170328-17:09:27,246 workflow DEBUG:
['
0x57a0736e4e427b97fa434b340fb27c83.json’, ‘_inputs.pklz’, 'node.pklz’, ‘report’, ‘parcellationS1_1_merged_59_maths_maths_res_mesh_points.txt’, ‘parcellationS1_1_merged_59_maths_maths_res_mesh_tri.txt’, ‘parcellationS2_1_merged_59_maths_maths_res_mesh_points.txt’, ‘parcellationS2_1_merged_59_maths_maths_res_mesh_tri.txt’, ‘parcellationS3_1_merged_59_maths_maths_res_mesh_points.txt’, ‘parcellationS3_1_merged_59_maths_maths_res_mesh_tri.txt’, ‘parcellationS4_1_merged_59_maths_maths_res_mesh_points.txt’, ‘parcellationS4_1_merged_59_maths_maths_res_mesh_tri.txt’, ‘pyscript.m’, ‘result_convertVTK2txt.pklz’]
170328-17:09:27,246 workflow DEBUG:
[’/Users/me/DataAndResults/Nipype_tests/test_wf_matlab_node/convertVTK2txt/
0x57a0736e4e427b97fa434b340fb27c83.json’]
170328-17:09:27,246 workflow DEBUG:
/Users/me/DataAndResults/Nipype_tests/test_wf_matlab_node/convertVTK2txt/
0x18c00a9aeb0d57636fddf4d54bb5434f.json
170328-17:09:27,246 workflow DEBUG:
(‘updatehash, overwrite, always_run, hash_exists’, False, None, False, False)
170328-17:09:27,246 workflow DEBUG:
Node hash: 18c00a9aeb0d57636fddf4d54bb5434f
170328-17:09:27,247 workflow DEBUG:
Rerunning node

Does anyone know how to fix this issue?

Many thanks for your help.
Cheers,
C.

Hello nipype community,
Any clue ?

Hi @ccury, thanks for bringing this up, we’ll be taking a look.

@ccury what version of nipype are you using?

python -c "import nipype; print(nipype.__version__)"

Hi @mgxd, thanks for your help !
I have the version 0.12.1