diff --git a/macapype/pipelines/full_pipelines.py b/macapype/pipelines/full_pipelines.py index 259ee0a20..95140c091 100644 --- a/macapype/pipelines/full_pipelines.py +++ b/macapype/pipelines/full_pipelines.py @@ -532,7 +532,7 @@ def create_brain_segment_from_mask_pipe( register_NMT_pipe, "inputnode.indiv_params") elif "reg" in params: - # Iterative registration to the INIA19 template + # Iterative registration to the template reg = NodeParams( IterREGBET(), params=parse_key(params, "reg"), diff --git a/macapype/pipelines/prepare.py b/macapype/pipelines/prepare.py index 1653e7ea2..ee97debf8 100644 --- a/macapype/pipelines/prepare.py +++ b/macapype/pipelines/prepare.py @@ -740,7 +740,9 @@ def create_short_preparation_pipe(params, params_template={}, params_template["padded_template_head"] elif "template_head" in params_template.keys(): - print("Found pad_val {}".format(pad_val)) + if "pad_val" in params["resample_T1_pad"].keys(): + pad_val = params["resample_T1_pad"]["pad_val"] + print("Found pad_val {}".format(pad_val)) # padding versio of the template pad_template = NodeParams(