Skip to content

Commit

Permalink
Remove fields that are unnecessary
Browse files Browse the repository at this point in the history
  • Loading branch information
arunkannawadi committed May 10, 2023
1 parent 89d5817 commit 1417acd
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions python/lsst/analysis/tools/atools/shapes.py
Expand Up @@ -190,32 +190,7 @@ def setDefaults(self):
self.prep.selectors.snSelector = SnSelector(fluxType="{band}_psfFlux", threshold=100)
self.prep.selectors.starSelector = StarSelector()

self.process.buildActions.patchWhole = LoadVector()
self.process.buildActions.patchWhole.vectorKey = "patch"

self.process.buildActions.mags = MagColumnNanoJansky(vectorKey="{band}_psfFlux")
# pre-compute a stellar selector mask so it can be used in the filter
# actions while only being computed once, alternatively the stellar
# selector could be calculated and applied twice in the filter stage
self.process.buildActions.starSelector = StarSelector()

self.process.filterActions.xStars = DownselectVector(
vectorKey="mags", selector=VectorSelector(vectorKey="starSelector")
)
# downselect the psfFlux as well
self.process.filterActions.psfFlux = DownselectVector(
vectorKey="{band}_psfFlux", selector=VectorSelector(vectorKey="starSelector")
)
self.process.filterActions.psfFluxErr = DownselectVector(
vectorKey="{band}_psfFluxErr", selector=VectorSelector(vectorKey="starSelector")
)

self.process.filterActions.patch = DownselectVector(
vectorKey="patchWhole", selector=VectorSelector(vectorKey="starSelector")
)

self.process.calculateActions.stars = CalcRhoStatistics()

self.process.calculateActions.stars.treecorr.nbins = 21
self.process.calculateActions.stars.treecorr.min_sep = 0.01
self.process.calculateActions.stars.treecorr.max_sep = 100.0
Expand Down

0 comments on commit 1417acd

Please sign in to comment.