We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f26d6d2 commit 41c4a60Copy full SHA for 41c4a60
python/lsst/meas/algorithms/setPrimaryFlags.py
@@ -303,9 +303,9 @@ def getDeblendPrimaryFlags(sources):
303
# children).
304
isLeaf = nChild == 0
305
isChild = depth > 0
306
- isSibling = parentNPeaks > 1
+ isSibling = (parentNPeaks > 1)
307
isDeblendedModelSource = isLeaf & isChild
308
- fromBlend = isDeblendedModelSource & isSibling
+ fromBlend = isDeblendedModelSource & (isSibling | (depth > 1))
309
isIsolatedParent = (depth == 0) & (nPeaks == 1)
310
isIsolated = isIsolatedParent | ((depth == 1) & ~isSibling)
311
isDeblendedSource = fromBlend | isIsolatedParent
0 commit comments