Skip to content

Commit

Permalink
Merge pull request #851 from lsst/tickets/DM-41008-v25
Browse files Browse the repository at this point in the history
DM-41008-v25: Do not include bands with no data in merge measurements
  • Loading branch information
mwittgen authored Oct 24, 2023
2 parents 9ff2be3 + a188857 commit 843133c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions python/lsst/pipe/tasks/mergeMeasurements.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,8 +263,13 @@ def run(self, catalogs):
if hasPseudoFilter:
break

isBad = any(inputRecord.get(flag) for flag in self.badFlags)
if isBad or inputRecord.get(self.fluxFlagKey) or inputRecord.get(self.instFluxErrKey) == 0:
isBad = (
any(inputRecord.get(flag) for flag in self.badFlags)
or inputRecord["deblend_dataCoverage"] == 0
or inputRecord.get(self.fluxFlagKey)
or inputRecord.get(self.instFluxErrKey) == 0
)
if isBad:
sn = 0.
else:
sn = inputRecord.get(self.instFluxKey)/inputRecord.get(self.instFluxErrKey)
Expand Down

0 comments on commit 843133c

Please sign in to comment.