Skip to content

🐛 deltaTE not in resource pool #2293

@shnizzedy

Description

@shnizzedy

Describe the bug

Traceback (most recent call last):
  File "/code/CPAC/pipeline/cpac_pipeline.py", line 467, in run_workflow
    workflow = build_workflow(subject_id, sub_dict, c, p_name)
  File "/code/CPAC/pipeline/cpac_pipeline.py", line 1608, in build_workflow
    raise lookup_error
  File "/code/CPAC/pipeline/cpac_pipeline.py", line 1580, in build_workflow
    wf = connect_pipeline(wf, cfg, rpool, pipeline_blocks)
  File "/code/CPAC/pipeline/cpac_pipeline.py", line 1173, in connect_pipeline
    wf = nb.connect_block(wf, cfg, rpool)
  File "/code/CPAC/pipeline/engine.py", line 1923, in connect_block
    wf, outs = block_function(wf, cfg, strat_pool, pipe_x, opt)
  File "/code/CPAC/pipeline/nodeblock.py", line 108, in __call__
    return self.func(wf, cfg, strat_pool, pipe_num, opt)
  File "/code/CPAC/distortion_correction/distortion_correction.py", line 191, in distcor_phasediff_fsl_fugue
    node, out = strat_pool.get_data("deltaTE")
  File "/code/CPAC/pipeline/engine.py", line 462, in get_data
    if quick_single or len(self.get(resource)) == 1:
  File "/code/CPAC/pipeline/engine.py", line 447, in get
    raise LookupError(msg)
LookupError: When trying to connect node block 'distcor_phasediff_fsl_fugue' to workflow 'cpac_pipeline_cpac_abcd-options_sub-NDARAE199TDD_ses-1' after node block 'mask_sbref': 

[!] C-PAC says: None of the listed resources are in the resource pool:

  'deltaTE' can be output from:
    deltaTE_ingress

To reproduce

Run C-PAC with --preconfig abcd-options in ghcr.io/fcp-indi/c-pac@sha256:aa81a11455bc0f7b6a5a37275d719a9c5f9e532cec546f6a908a4f51e2138d27

Preconfig

  • abcd-options
  • benchmark-FNIRT
  • ccs-options
  • default
  • fmriprep-options
  • fx-options

Expected behavior

deltaTE is in the resource pool if needed, or doesn't crash if not needed

Acceptance criteria

  • deltaTE is in the resource pool if needed
  • doesn't crash if not needed

C-PAC version

v1.8.8.dev1

Container platform

Singularity, Docker

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Status

    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions