Skip to content

Commit 41c4a60

Browse files
committed
Fix bug in fromBlend selection
1 parent f26d6d2 commit 41c4a60

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/lsst/meas/algorithms/setPrimaryFlags.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,9 +303,9 @@ def getDeblendPrimaryFlags(sources):
303303
# children).
304304
isLeaf = nChild == 0
305305
isChild = depth > 0
306-
isSibling = parentNPeaks > 1
306+
isSibling = (parentNPeaks > 1)
307307
isDeblendedModelSource = isLeaf & isChild
308-
fromBlend = isDeblendedModelSource & isSibling
308+
fromBlend = isDeblendedModelSource & (isSibling | (depth > 1))
309309
isIsolatedParent = (depth == 0) & (nPeaks == 1)
310310
isIsolated = isIsolatedParent | ((depth == 1) & ~isSibling)
311311
isDeblendedSource = fromBlend | isIsolatedParent

0 commit comments

Comments
 (0)