Skip to content

Commit 2af65ab

Browse files
authored
Merge pull request #197 from mathesong/pr_194_fix
Fix PR 194
2 parents ef45a31 + f69a474 commit 2af65ab

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

petprep/cli/parser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -789,8 +789,8 @@ def parse_args(args=None, namespace=None):
789789
config.execution.log_level = int(max(25 - 5 * opts.verbose_count, logging.DEBUG))
790790
config.from_dict(vars(opts), init=['nipype'])
791791

792-
config.workflow._petref_cli_set = '--petref' in argv
793-
config.workflow._pet2anat_method_cli_set = '--pet2anat-method' in argv
792+
config.workflow.petref_specified = '--petref' in argv
793+
config.workflow.pet2anat_method_specified = '--pet2anat-method' in argv
794794

795795
if config.execution.session_label:
796796
config.execution.bids_filters = config.execution.bids_filters or {}

petprep/workflows/pet/fit.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -704,6 +704,7 @@ def init_pet_fit_wf(
704704
val_pet.inputs.in_file = pet_file
705705
if petref_strategy == 'auto':
706706
corrected_pet_for_report.inputs.ref_file = petref
707+
petref_candidates.inputs.template = petref
707708
workflow.connect([
708709
(val_pet, corrected_pet_for_report, [('out_file', 'in_file')]),
709710
(hmc_buffer, corrected_pet_for_report, [('hmc_xforms', 'transforms')]),

0 commit comments

Comments
 (0)