Skip to content

Commit

Permalink
Clarify variable name.
Browse files Browse the repository at this point in the history
  • Loading branch information
FredLoney committed May 20, 2017
1 parent a436e32 commit b110038
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qipipe/pipeline/qipipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ def run_with_scan_download(self, project, subject, session, scan, actions,
# The XNAT volume file names.
scan_volumes = _scan_files(xnat, project, subject, session, scan,
'NIFTI', VOLUME_FILE_PAT)
if not files:
if not scan_volumes:
raise ArgumentError("There are no pipeline %s %s %s"
" scan %d volumes" %
(project, subject, session, scan))
Expand All @@ -521,7 +521,7 @@ def run_with_scan_download(self, project, subject, session, scan, actions,
# already registered and those which need to be registered.
if is_existing_registration_resource:
registered, unregistered = self._partition_registered(
xnat, project, subject, session, scan, files
xnat, project, subject, session, scan, scan_volumes
)
else:
registered = []
Expand Down

0 comments on commit b110038

Please sign in to comment.