Skip to content

Commit

Permalink
ImageDifferenceTask: Raise if doUseRegister and not doSelectSources
Browse files Browse the repository at this point in the history
  • Loading branch information
yalsayyad committed Oct 5, 2015
1 parent 5626528 commit 181c4a1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions python/lsst/pipe/tasks/imageDifference.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,10 @@ def validate(self):
raise ValueError("Cannot run source measurement without source detection.")
if self.doMerge and not self.doDetection:
raise ValueError("Cannot run source merging without source detection.")
if self.doUseRegister and not self.doSelectSources:
raise ValueError("doUseRegister=True and doSelectSources=False. " +
"Cannot run RegisterTask without selecting sources.")


class ImageDifferenceTaskRunner(pipeBase.TaskRunner):
@staticmethod
Expand Down

0 comments on commit 181c4a1

Please sign in to comment.