Skip to content

Commit 207e695

Browse files
committed
🐛 Only ingress functional if functional exists
1 parent 3cf49bf commit 207e695

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

CPAC/pipeline/engine.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1913,10 +1913,10 @@ def initiate_rpool(wf, cfg, data_paths=None, part_id=None):
19131913
if data_paths:
19141914
rpool = ingress_raw_anat_data(wf, rpool, cfg, data_paths, unique_id,
19151915
part_id, ses_id)
1916-
1917-
wf, rpool, diff, blip, fmap_rp_list = \
1918-
ingress_raw_func_data(wf, rpool, cfg, data_paths, unique_id,
1919-
part_id, ses_id)
1916+
if 'func' in data_paths:
1917+
wf, rpool, diff, blip, fmap_rp_list = \
1918+
ingress_raw_func_data(wf, rpool, cfg, data_paths, unique_id,
1919+
part_id, ses_id)
19201920

19211921
# grab already-processed data from the output directory
19221922
rpool = ingress_output_dir(cfg, rpool, unique_id, creds_path)

CPAC/pipeline/test/test_engine.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ def test_ingress_func_raw_data(pipe_config, bids_dir, test_dir):
2828

2929
rpool = ResourcePool(name=unique_id, cfg=cfg)
3030

31-
wf, rpool, diff, blip, fmap_rp_list = ingress_raw_func_data(wf, rpool, cfg,
32-
sub_data_dct,
33-
unique_id,
34-
part_id, ses_id)
31+
if 'func' in sub_data_dct:
32+
wf, rpool, diff, blip, fmap_rp_list = \
33+
ingress_raw_func_data(wf, rpool, cfg, sub_data_dct, unique_id,
34+
part_id, ses_id)
3535

3636
rpool.gather_pipes(wf, cfg, all=True)
3737

0 commit comments

Comments
 (0)