Skip to content

Commit

Permalink
Add spatiallySampledMetrics to detectAndMeasure output
Browse files Browse the repository at this point in the history
  • Loading branch information
isullivan committed Apr 2, 2024
1 parent c6a4090 commit f0287e6
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 f0287e6

Please sign in to comment.