Skip to content

Commit

Permalink
Don't generate a registration resource in the parent workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
FredLoney committed May 25, 2017
1 parent 918bb63 commit 243c5bf
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions qipipe/pipeline/qipipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -651,19 +651,13 @@ def _create_workflow(self, subject, session, scan, actions, **opts):
if not self.registration_technique:
raise ArgumentError('Missing the registration technique')

# The registration resource option is set if and
# only if we are resuming a previously interrupted
# registration process.
if not self.registration_resource:
reg_rsc = registration.generate_resource_name()
self.registration_resource = reg_rsc

# Spell out the registration workflow options rather
# than delegating to this qipipeline workflow as the
# parent, since Nipype Function arguments must be
# primitive.
reg_opts = self._child_options()
reg_opts['resource'] = self.registration_resource
if self.registration_resource
reg_opts['resource'] = self.registration_resource
reg_opts['technique'] = self.registration_technique
if 'recursive_registration' in opts:
reg_opts['recursive'] = opts['recursive_registration']
Expand Down

0 comments on commit 243c5bf

Please sign in to comment.