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

DM-2850: Remove Task.getSchemaCatalogs #226

Merged
merged 1 commit into from
Nov 18, 2022
Merged
Show file tree
Hide file tree
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
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}