Skip to content

Commit

Permalink
Merge pull request #219 from lsst/tickets/DM-43404
Browse files Browse the repository at this point in the history
DM-43404: Add summaryMetrics to detectAndMeasure output
  • Loading branch information
isullivan authored Apr 5, 2024
2 parents c6a4090 + f0287e6 commit 50eb43f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/lsst/ap/verify/testPipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
# to be public for that.
__all__ = []


import astropy.table
import numpy as np
import pandas

Expand Down Expand Up @@ -432,6 +432,7 @@ def run(self, science, matchedTemplate, difference,
"""
return Struct(subtractedMeasuredExposure=difference,
diaSources=afwTable.SourceCatalog(),
spatiallySampledMetrics=astropy.table.Table(),
)


Expand Down
3 changes: 3 additions & 0 deletions tests/test_testPipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ def setUpClass(cls):
butlerTests.addDatasetType(cls.repo, "deepDiff_matchedExp", cls.visitId.dimensions, "ExposureF")
butlerTests.addDatasetType(cls.repo, "deepDiff_diaSrc", cls.visitId.dimensions, "SourceCatalog")
butlerTests.addDatasetType(cls.repo, "deepDiff_diaSrcTable", cls.visitId.dimensions, "DataFrame")
butlerTests.addDatasetType(cls.repo, "deepDiff_spatiallySampledMetrics", cls.visitId.dimensions,
"ArrowAstropy")
butlerTests.addDatasetType(cls.repo, "deepDiff_candidateDiaSrc", cls.visitId.dimensions,
"SourceCatalog")
butlerTests.addDatasetType(cls.repo, "visitSsObjects", cls.visitOnlyId.dimensions, "DataFrame")
Expand Down Expand Up @@ -252,6 +254,7 @@ def testMockDetectAndMeasureTask(self):
"difference": self.visitId,
"diaSources": self.visitId,
"subtractedMeasuredExposure": self.visitId,
"spatiallySampledMetrics": self.visitId,
})
pipelineTests.runTestQuantum(task, self.butler, quantum, mockRun=False)

Expand Down

0 comments on commit 50eb43f

Please sign in to comment.