Skip to content

Commit

Permalink
Merge pull request #226 from lsst/tickets/DM-2850
Browse files Browse the repository at this point in the history
DM-2850: Remove Task.getSchemaCatalogs
  • Loading branch information
timj committed Nov 18, 2022
2 parents e79e97c + 1362c32 commit da2f591
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 36 deletions.
18 changes: 0 additions & 18 deletions python/lsst/meas/base/forcedPhotCcd.py
Original file line number Diff line number Diff line change
Expand Up @@ -572,24 +572,6 @@ def attachFootprints(self, sources, refCat, exposure, refWcs):
return self.measurement.attachPsfShapeFootprints(sources, exposure,
scaling=self.config.psfFootprintScaling)

def getSchemaCatalogs(self):
"""The schema catalogs that will be used by this task.
Returns
-------
schemaCatalogs : `dict`
Dictionary mapping dataset type to schema catalog.
Notes
-----
There is only one schema for each type of forced measurement. The
dataset type for this measurement is defined in the mapper.
"""
catalog = lsst.afw.table.SourceCatalog(self.measurement.schema)
catalog.getTable().setMetadata(self.measurement.algMetadata)
datasetType = self.dataPrefix + "forced_src"
return {datasetType: catalog}


class ForcedPhotCcdFromDataFrameConnections(PipelineTaskConnections,
dimensions=("instrument", "visit", "detector", "skymap", "tract"),
Expand Down
18 changes: 0 additions & 18 deletions python/lsst/meas/base/forcedPhotCoadd.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,21 +353,3 @@ def _attachScarletFootprints(self, catalog, modelData, exposure, band):
removeScarletData=True,
updateFluxColumns=False,
)

def getSchemaCatalogs(self):
"""The schema catalogs that will be used by this task.
Returns
-------
schemaCatalogs : `dict`
Dictionary mapping dataset type to schema catalog.
Notes
-----
There is only one schema for each type of forced measurement. The
dataset type for this measurement is defined in the mapper.
"""
catalog = lsst.afw.table.SourceCatalog(self.measurement.schema)
catalog.getTable().setMetadata(self.measurement.algMetadata)
datasetType = self.dataPrefix + "forced_src"
return {datasetType: catalog}

0 comments on commit da2f591

Please sign in to comment.