Skip to content

afni Allineate caching fails when out_matrix is specified #3140

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
salma1601 opened this issue Jan 4, 2020 · 0 comments · May be fixed by #3141
Open

afni Allineate caching fails when out_matrix is specified #3140

salma1601 opened this issue Jan 4, 2020 · 0 comments · May be fixed by #3141

Comments

@salma1601
Copy link
Contributor

Summary

caching of afni's Allineate interface is not handled correctly

Actual behavior

the interface with the same inputs is rerun when the input out_matrix is specified

Expected behavior

no rerunning with the same inputs

How to replicate the behavior

Script/Workflow details

from nipype.interfaces import afni
from nipype.caching import Memory
memory = Memory('/tmp')
a = memory.cache(afni.Allineate)
out_a = a(in_file='/tmp/anat.nii.gz', reference='/tmp/anat.nii.gz', out_matrix='/tmp/anat_matrix.aff12.1D', out_file='/tmp/anat_allineated.nii.gz')

Platform details:

200104-23:06:04,766 nipype.utils INFO:
	 Running nipype version 1.5.0-dev+gec5e74f36 (latest: 1.4.0)
{'commit_hash': 'ec5e74f36',
 'commit_source': 'repository',
 'networkx_version': '2.4',
 'nibabel_version': '3.0.0',
 'nipype_version': '1.5.0-dev+gec5e74f36',
 'numpy_version': '1.17.4',
 'pkg_path': '/home/salma/CODE/nipype/nipype',
 'scipy_version': '1.3.2',
 'sys_executable': '/home/salma/miniconda3/bin/python',
 'sys_platform': 'linux',
 'sys_version': '3.7.4 (default, Aug 13 2019, 20:35:49) \n[GCC 7.3.0]',
 'traits_version': '5.2.0'}

Execution environment

Choose one

  • My python environment outside container
@salma1601 salma1601 linked a pull request Jan 4, 2020 that will close this issue
1 task
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant