Skip to content

Commit

Permalink
Update run method docstring.
Browse files Browse the repository at this point in the history
Fix linting.
  • Loading branch information
morriscb committed May 25, 2021
1 parent b33d457 commit 703afbe
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions python/lsst/pipe/tasks/drpAssociationPipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,7 @@ class DrpAssociationPipeConnections(pipeBase.PipelineTaskConnections,
class DrpAssociationPipeConfig(
pipeBase.PipelineTaskConfig,
pipelineConnections=DrpAssociationPipeConnections):
maxFootprintArea = pexConfig.Field(
dtype=int,
default=5000,
doc="Maximum area of footprints")
# associator = pexConfig.ConfigurableField(
# target=SimpleAssociationTask,
# doc="Task used to associate DiaSources with DiaObjects.",
# )
pass


class DrpAssociationPipeTask(pipeBase.PipelineTask):
Expand Down Expand Up @@ -124,6 +117,9 @@ def run(self, diaSourceTables, skyMap, tractId, patchId):
output : `lsst.pipe.base.Struct`
Results struct with attributes:
``assocDiaSourceTable``
Table of DiaSources with updated value for diaObjectId.
(`pandas.DataFrame`)
``diaDiaObjectTable``
Table of DiaObjects from matching DiaSources
(`pandas.DataFrame`).
Expand Down Expand Up @@ -194,7 +190,6 @@ def _trimToPatchGen(self, cat, innerPatchBox, wcs):
Boolean representing if the DiaSource is contained within the
current patch and tract.
"""

for idx, row in cat.iterrows():
sphPoint = geom.SpherePoint(row["ra"], row["decl"], geom.degrees)
inPatch = innerPatchBox.contains(wcs.skyToPixel(sphPoint))
Expand Down

0 comments on commit 703afbe

Please sign in to comment.