@@ -582,7 +582,7 @@ def find_fmap_groups(fmap_dir):
582
582
return fmap_groups
583
583
584
584
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 ' ):
586
586
"""
587
587
Gets key information needed to assign fmaps to other modalities.
588
588
@@ -620,7 +620,7 @@ def get_key_info_for_fmap_assignment(json_file, matching_parameter='Shims'):
620
620
return key_info
621
621
622
622
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 ' ]):
624
624
"""
625
625
Finds compatible fmaps for a given run, for populate_intended_for.
626
626
@@ -672,7 +672,7 @@ def find_compatible_fmaps_for_run(json_file, fmap_groups, matching_parameters=['
672
672
return compatible_fmap_groups
673
673
674
674
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 ' ]):
676
676
"""
677
677
Finds compatible fmaps for all non-fmap runs in a session.
678
678
@@ -813,7 +813,7 @@ def select_fmap_from_compatible_groups(json_file, compatible_fmap_groups, criter
813
813
return selected_fmap_key
814
814
815
815
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' ):
817
817
"""
818
818
Adds the 'IntendedFor' field to the fmap .json files in a session folder.
819
819
It goes through the session folders and for every json file, it finds
0 commit comments