Medical-Image-Analysis-Laboratory / mialsuperresolutiontoolkit

The Medical Image Analysis Laboratory Super-Resolution ToolKit (MIALSRTK) consists of a set of C++ and Python processing and workflow tools necessary to perform motion-robust super-resolution fetal MRI reconstruction in the BIDS Apps framework.
BSD 3-Clause "New" or "Revised" License
26 stars 12 forks source link

Conditional connections of `input_stage` #165

Closed pdedumast closed 2 years ago

pdedumast commented 2 years ago

When skip_stacks_ordering=true, follwing error:

Traceback (most recent call last):
  File "/app/run.py", line 305, in <module>
    memory=args.memory)
  File "/app/run.py", line 232, in main
    res = pipeline.run(memory=memory)
  File "/opt/conda/lib/python3.7/site-packages/pymialsrtk/pipelines/anatomical/srr.py", line 475, in run
    res = self.wf.run()
  File "/opt/conda/lib/python3.7/site-packages/nipype/pipeline/engine/workflows.py", line 628, in run
    execgraph = generate_expanded_graph(deepcopy(flatgraph))
  File "/opt/conda/lib/python3.7/site-packages/nipype/pipeline/engine/utils.py", line 967, in generate_expanded_graph
    graph_in = _remove_nonjoin_identity_nodes(graph_in, keep_iterables=True)
  File "/opt/conda/lib/python3.7/site-packages/nipype/pipeline/engine/utils.py", line 847, in _remove_nonjoin_identity_nodes
    _remove_identity_node(graph, node)
  File "/opt/conda/lib/python3.7/site-packages/nipype/pipeline/engine/utils.py", line 875, in _remove_identity_node
    _propagate_root_output(graph, node, field, connections)
  File "/opt/conda/lib/python3.7/site-packages/nipype/pipeline/engine/utils.py", line 911, in _propagate_root_output
    value = getattr(node.inputs, field)
AttributeError: 'DynamicTraitedSpec' object has no attribute 'report_image'