Skip to content

Commit b72ecd8

Browse files
committed
Make 'ImagingVolume' the default matching_parameters
For populating fmaps `"IntendedFor"`
1 parent ccb96df commit b72ecd8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

heudiconv/bids.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ def find_fmap_groups(fmap_dir):
582582
return fmap_groups
583583

584584

585-
def get_key_info_for_fmap_assignment(json_file, matching_parameter='Shims'):
585+
def get_key_info_for_fmap_assignment(json_file, matching_parameter='ImagingVolume'):
586586
"""
587587
Gets key information needed to assign fmaps to other modalities.
588588
@@ -620,7 +620,7 @@ def get_key_info_for_fmap_assignment(json_file, matching_parameter='Shims'):
620620
return key_info
621621

622622

623-
def find_compatible_fmaps_for_run(json_file, fmap_groups, matching_parameters=['Shims']):
623+
def find_compatible_fmaps_for_run(json_file, fmap_groups, matching_parameters=['ImagingVolume']):
624624
"""
625625
Finds compatible fmaps for a given run, for populate_intended_for.
626626
@@ -672,7 +672,7 @@ def find_compatible_fmaps_for_run(json_file, fmap_groups, matching_parameters=['
672672
return compatible_fmap_groups
673673

674674

675-
def find_compatible_fmaps_for_session(path_to_bids_session, matching_parameters=['Shims']):
675+
def find_compatible_fmaps_for_session(path_to_bids_session, matching_parameters=['ImagingVolume']):
676676
"""
677677
Finds compatible fmaps for all non-fmap runs in a session.
678678
@@ -813,7 +813,7 @@ def select_fmap_from_compatible_groups(json_file, compatible_fmap_groups, criter
813813
return selected_fmap_key
814814

815815

816-
def populate_intended_for(path_to_bids_session, matching_parameters='Shims', criterion='Closest'):
816+
def populate_intended_for(path_to_bids_session, matching_parameters='ImagingVolume', criterion='Closest'):
817817
"""
818818
Adds the 'IntendedFor' field to the fmap .json files in a session folder.
819819
It goes through the session folders and for every json file, it finds

0 commit comments

Comments
 (0)