Skip to content

Commit 0967851

Browse files
committed
Quick repair of phase difference field map ingress.
1 parent 20f06d7 commit 0967851

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

CPAC/utils/bids_utils.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,6 @@ def bids_gen_cpac_sublist(bids_dir, paths_list, config_dict, creds_path,
534534
raise_error=raise_error)
535535

536536
subdict = {}
537-
538537
for p in paths_list:
539538
if bids_dir in p:
540539
str_list = p.split(bids_dir)
@@ -702,8 +701,8 @@ def collect_bids_files_configs(bids_dir, aws_input_creds=''):
702701
file_paths = []
703702
config_dict = {}
704703

705-
suffixes = ['T1w', 'T2w', 'bold', 'epi', 'phasediff', 'magnitude',
706-
'magnitude1', 'magnitude2']
704+
suffixes = ['T1w', 'T2w', 'bold', 'epi', 'phasediff', 'phase1',
705+
'magnitude', 'magnitude1', 'magnitude2']
707706

708707
if bids_dir.lower().startswith("s3://"):
709708
# s3 paths begin with s3://bucket/

CPAC/utils/datasource.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ def ingress_func_metadata(wf, cfg, rpool, sub_dict, subject_id,
505505

506506
fmap_TE_list.append(f"{key}-TE")
507507

508-
if re.search('diff.*(phase|mag)', key):
508+
if 'phase' in key or 'mag' in key:
509509
diff = True
510510

511511
if re.match('epi_[AP]{2}', orig_key):

0 commit comments

Comments
 (0)