Skip to content

Commit

Permalink
Sorting the names before the assignment to the processing dictionary
Browse files Browse the repository at this point in the history
  • Loading branch information
Yasser Alemán Gómez committed Sep 3, 2024
1 parent 342f9ca commit c3b0333
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions chimera/chimera.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,8 @@ def _prepare_templates(self, fssubj_dir:str = None):
# Filtering for selecting the correct cortical parcellation
ctx_parc_lh = cltmisc._filter_by_substring(ctx_parc_lh, atlas_names, boolcase=False)
ctx_parc_rh = cltmisc._filter_by_substring(ctx_parc_rh, atlas_names, boolcase=False)
ctx_parc_lh.sort()
ctx_parc_rh.sort()

if not ctx_parc_lh or not ctx_parc_rh:
raise ValueError("Cortical parcellations should be supplied for both hemispheres.")
Expand Down

0 comments on commit c3b0333

Please sign in to comment.