Skip to content

Commit 9d4a4fe

Browse files
committed
enh: add hash to datasinks if multiverse
1 parent c59c6ea commit 9d4a4fe

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

nibabies/workflows/base.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -836,6 +836,10 @@ def clean_datasinks(workflow: pe.Workflow) -> pe.Workflow:
836836
for node in workflow.list_node_names():
837837
if node.split('.')[-1].startswith('ds_'):
838838
workflow.get_node(node).interface.out_path_base = ''
839+
workflow.get_node(node).interface.inputs.base_directory = config.execution.output_dir
840+
841+
if config.execution.output_layout == 'multiverse':
842+
workflow.get_node(node).interface.inputs.hash = config.execution.parameters_hash
839843
return workflow
840844

841845

0 commit comments

Comments
 (0)