Skip to content

Commit

Permalink
Renaming PsfMatch to PsfMatchTask within ip_diffim; PsfMatch=PsfMatch…
Browse files Browse the repository at this point in the history
…Task makes this change transparent for other packages
  • Loading branch information
acbecker committed Jul 29, 2014
1 parent f37d459 commit ea0a71c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions python/lsst/ip/diffim/imagePsfMatch.py
Expand Up @@ -70,7 +70,7 @@ def setDefaults(self):
self.selectMeasurement.slots.modelFlux = None
self.selectMeasurement.slots.apFlux = None

class ImagePsfMatchTask(PsfMatch):
class ImagePsfMatchTask(PsfMatchTask):
"""PSF-match images to reference images
Fits the following model:
Expand All @@ -84,7 +84,7 @@ def __init__(self, *args, **kwargs):
@param config: see lsst.ip.diffim.PsfMatchConfig
@param logName: name by which messages are logged
"""
PsfMatch.__init__(self, *args, **kwargs)
PsfMatchTask.__init__(self, *args, **kwargs)
self.kConfig = self.config.kernel.active
self._warper = afwMath.Warper.fromConfig(self.kConfig.warpingConfig)
self.selectSchema = afwTable.SourceTable.makeMinimalSchema()
Expand Down
2 changes: 1 addition & 1 deletion python/lsst/ip/diffim/modelPsfMatch.py
Expand Up @@ -58,7 +58,7 @@ def setDefaults(self):
self.kernel.active.kernelSize = 11


class ModelPsfMatchTask(PsfMatch):
class ModelPsfMatchTask(PsfMatchTask):
"""PSF-match PSF models to reference PSF models
"""
ConfigClass = ModelPsfMatchConfig
Expand Down
3 changes: 2 additions & 1 deletion python/lsst/ip/diffim/psfMatch.py
Expand Up @@ -542,7 +542,7 @@ def setDefaults(self):
)


class PsfMatch(pipeBase.Task):
class PsfMatchTask(pipeBase.Task):
"""Base class for PSF matching task. Has no run method; hence should not be called!
"""
ConfigClass = PsfMatchConfig
Expand Down Expand Up @@ -892,3 +892,4 @@ def _solve(self, kernelCellSet, basisList, returnOnExcept=False):

return spatialSolution, spatialKernel, spatialBackground

PsfMatch=PsfMatchTask

0 comments on commit ea0a71c

Please sign in to comment.