Open
Description
Summary
When using (regexp) substitutions (e.g. substitutions=[("old", "new")]
), an empty directory will be created that corresponds to the directory name that is substituted (e.g. old
), in addition to the new directory that contains the data.
Actual behavior
There are two directories:
- "old" (empty)
- "new" (with the data)
Expected behavior
There is only one directory:
- new (with the data)
How to replicate the behavior
Example:
results = pe.Node(io.DataSink(substitutions=[("old", "new")],
base_directory=/path/to/base/")),
name='results')
Script/Workflow details
Please put URL to code or code here (if not too long).
Platform details:
{'commit_hash': '3b50532',
'commit_source': 'installation',
'networkx_version': '2.8.4',
'nibabel_version': '4.0.1',
'nipype_version': '1.8.3',
'numpy_version': '1.23.1',
'pkg_path': '/home/cogaff/renyol/fawn_env/lib/python3.8/site-packages/nipype',
'scipy_version': '1.8.1',
'sys_executable': '/home/cogaff/renyol/fawn_env/bin/python',
'sys_platform': 'linux',
'sys_version': '3.8.8 (default, Apr 13 2021, 19:58:26) \n[GCC 7.3.0]',
'traits_version': '6.3.2'}
Execution environment
Choose one
- My python environment outside container