Skip to content

Commit e9740cf

Browse files
shnizzedygkiarsgiavasisamygutierrez
committed
🔧 Base 'anat-only' and 'preproc' preconfigs on 'default' instead of 'blank'
Ref https://cmi-cnl.slack.com/archives/C044UUCC4BX/p1666888504397959?thread_ts=1666888233.415009&cid=C044UUCC4BX Co-authored-by: Greg Kiar <[email protected]> Co-authored-by: Steve Giavasis <[email protected]> Co-authored-by: Amy Gutierrez <[email protected]>
1 parent c665114 commit e9740cf

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

CPAC/utils/configuration/yaml_template.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -487,14 +487,16 @@ def update_a_preconfig(preconfig, import_from):
487487
def update_all_preconfigs():
488488
"""Update all other preconfigs with comments from default"""
489489
from CPAC.pipeline import ALL_PIPELINE_CONFIGS
490-
not_from_blank = ['blank', 'default', 'fx-options', 'nhp-macaque',
491-
'rbc-options']
490+
not_from_blank = ('anat-only', 'blank', 'default', 'fx-options',
491+
'nhp-macaque', 'preproc', 'rbc-options')
492492
update_a_preconfig('blank', None)
493-
for preconfig in ['fx-options', 'rbc-options']:
493+
for preconfig in ('anat-only', 'preproc'):
494+
update_a_preconfig(preconfig, 'default')
495+
for preconfig in ('fx-options', 'rbc-options'):
494496
update_a_preconfig(preconfig, 'fmriprep-options')
495497
update_a_preconfig('nhp-macaque', 'monkey')
496-
for preconfig in [_ for _ in ALL_PIPELINE_CONFIGS if
497-
_ not in not_from_blank]:
498+
for preconfig in (_ for _ in ALL_PIPELINE_CONFIGS if
499+
_ not in not_from_blank):
498500
update_a_preconfig(preconfig, 'blank')
499501

500502

0 commit comments

Comments
 (0)