Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

singleFrameDriver: adapt to change to ProcessCcdTask.__init__ #14

Merged
merged 1 commit into from
Jan 11, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
19 changes: 14 additions & 5 deletions python/lsst/pipe/drivers/singleFrameDriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,27 @@ class SingleFrameDriverTask(BatchParallelTask):
_DefaultName = "singleFrameDriver"
RunnerClass = SingleFrameTaskRunner

def __init__(self, butler=None, refObjLoader=None, *args, **kwargs):
def __init__(self, butler=None, psfRefObjLoader=None, astromRefObjLoader=None, photoRefObjLoader=None,
*args, **kwargs):
"""!
Constructor

The psfRefObjLoader, astromRefObjLoader, photoRefObjLoader should
be an instance of LoadReferenceObjectsTasks that supplies an external
reference catalog. They may be None if the butler argument is
provided or the particular reference catalog is not required.

@param[in] butler The butler is passed to the refObjLoader constructor in case it is
needed. Ignored if the refObjLoader argument provides a loader directly.
@param[in] refObjLoader An instance of LoadReferenceObjectsTasks that supplies an
external reference catalog. May be None if the butler argument is provided or
all steps requiring a reference catalog are disabled.
@param[in] psfRefObjLoader Reference catalog loader for PSF determination.
@param[in] astromRefObjLoader Reference catalog loader for astrometric calibration.
@param[in] photoRefObjLoader Reference catalog loader for photometric calibration.
@param[in,out] kwargs other keyword arguments for lsst.ctrl.pool.BatchParallelTask
"""
BatchParallelTask.__init__(self, *args, **kwargs)
self.ignoreCcds = set(self.config.ignoreCcdList)
self.makeSubtask("processCcd", butler=butler, refObjLoader=refObjLoader)
self.makeSubtask("processCcd", butler=butler, psfRefObjLoader=psfRefObjLoader,
astromRefObjLoader=astromRefObjLoader, photoRefObjLoader=photoRefObjLoader)

@classmethod
def _makeArgumentParser(cls, *args, **kwargs):
Expand Down