Skip to content

Commit

Permalink
Rename make_basename node to basename to avoid variable name conflict.
Browse files Browse the repository at this point in the history
  • Loading branch information
FredLoney committed May 24, 2017
1 parent da47165 commit 77c1d95
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions qipipe/pipeline/modeling.py
Original file line number Diff line number Diff line change
Expand Up @@ -465,15 +465,15 @@ def _create_bolero_workflow(self, **opts):
setattr(input_spec.inputs, field, value)

# Create the DCE baseline image.
make_baseline_xfc = Function(
baseline_xfc = Function(
input_names=['time_series', 'baseline_end_idx'],
output_names=['baseline'], function=make_baseline
)
make_baseline = pe.Node(make_baseline_xfc, name='make_baseline')
baseline = pe.Node(baseline_xfc, name='baseline')
workflow.connect(input_spec, 'time_series',
make_baseline, 'time_series')
baseline, 'time_series')
workflow.connect(input_spec, 'baseline_end_idx',
make_baseline, 'baseline_end_idx')
baseline, 'baseline_end_idx')

# If we are not using a fixed r1_0 value, then compute a map
# from a proton density weighted scan and the baseline of the
Expand All @@ -486,7 +486,7 @@ def _create_bolero_workflow(self, **opts):
)
get_r1_0 = pe.Node(get_r1_0_xfc, name='get_r1_0')
workflow.connect(input_spec, 'pd_nii', get_r1_0, 'pdw_image')
workflow.connect(make_baseline, 'baseline', get_r1_0, 't1w_image')
workflow.connect(baseline, 'baseline', get_r1_0, 't1w_image')
workflow.connect(input_spec, 'max_r1_0', get_r1_0, 'max_r1_0')
workflow.connect(input_spec, 'mask', get_r1_0, 'mask')

Expand All @@ -498,7 +498,7 @@ def _create_bolero_workflow(self, **opts):
)
r1_series = pe.Node(r1_series_xfc, name='r1_series')
workflow.connect(input_spec, 'time_series', r1_series, 'time_series')
workflow.connect(make_baseline, 'baseline', r1_series, 'baseline')
workflow.connect(baseline, 'baseline', r1_series, 'baseline')
workflow.connect(input_spec, 'mask', r1_series, 'mask')
if use_fixed_r1_0:
workflow.connect(input_spec, 'r1_0_val', r1_series, 'r1_0')
Expand Down Expand Up @@ -580,7 +580,7 @@ def _create_bolero_workflow(self, **opts):
output_spec, 'delta_k_trans')
# If we are inferring R1_0, then make the DCE baseline.
if not use_fixed_r1_0:
workflow.connect(make_baseline, 'baseline',
workflow.connect(baseline, 'baseline',
output_spec, 'dce_baseline')
workflow.connect(get_r1_0, 'r1_0_map', output_spec, 'r1_0')

Expand Down

0 comments on commit 77c1d95

Please sign in to comment.