Skip to content
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions python/lsst/pipe/tasks/postprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -1773,11 +1773,13 @@ def run(self, inputCatalogs, referenceCatalog, funcs=None, dataId=None, band=Non
outputCatalog.index.rename(self.config.keyRef, inplace=True)
# Add config.keyRef to the column list
outputCatalog.reset_index(inplace=True)
# Set the forcedSourceId to the index. This is specified in the
# ForcedSource.yaml
outputCatalog.set_index("forcedSourceId", inplace=True, verify_integrity=True)
# Rename it to the config.key
outputCatalog.index.rename(self.config.key, inplace=True)

if "forcedSourceId" in outputCatalog.columns:
# Set the forcedSourceId to the index. This is specified in the
# ForcedSource.yaml
outputCatalog.set_index("forcedSourceId", inplace=True, verify_integrity=True)
# Rename it to the config.key
outputCatalog.index.rename(self.config.key, inplace=True)

self.log.info("Made a table of %d columns and %d rows",
len(outputCatalog.columns), len(outputCatalog))
Expand Down
4 changes: 0 additions & 4 deletions schemas/ForcedSource.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@
# `lsst.pipe.tasks.postprocess.TransformForcedSourceTableTask`.
# See the DPDD for more information about the output: https://lse-163.lsst.io
funcs:
forcedSourceId:
functor: Column
args: id
dataset: calexp
parentObjectId:
functor: Column
args: parent
Expand Down