Skip to content

Commit 66b9ca5

Browse files
authored
Ensure ingress_reconall option in pipeline config
1 parent b5dc9ae commit 66b9ca5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

CPAC/utils/configuration/yaml_template.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,12 @@ def dump(self, new_dict, parents=None):
108108
fsldir = self.get_nested(self._dict,
109109
['pipeline_setup', 'system_config',
110110
'FSLDIR'])
111+
try:
112+
self.get_nested(new_dict, ['surface_analysis', 'freesurfer', 'ingress_reconall'])
113+
except KeyError:
114+
new_dict = set_nested_value(new_dict, ['surface_analysis', 'freesurfer',
115+
'ingress_reconall'], False)
116+
111117
# Add YAML version directive to top of document and ensure
112118
# C-PAC version comment and 'FROM' are at the top of the YAML
113119
# output

0 commit comments

Comments
 (0)