Details
-
Type:
Bug
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: pipe_tasks
-
Labels:None
-
Story Points:1
-
Epic Link:
-
Sprint:DRP F17-3
-
Team:Data Release Production
Description
Sogo Mineo reports another bug in peak culling that makes it hard to disable via configuration:
The docstring of class CullPeaksConfig says:
To disable peak culling, simply set nBandsSafe=1.
If I assume `nBandsSafe` is a typo for `nBandsSufficient`
and set nBandsSufficient = 1,
then the condition for a peak to be kept:if ((rank < self.config.cullPeaks.rankSufficient) or
(self.config.cullPeaks.nBandsSufficient > 1 and
sum([peak.get(k) for k in keys]) >= self.config.cullPeaks.nBandsSufficient) or
(rank < self.config.cullPeaks.rankConsidered and
rank < self.config.cullPeaks.rankNormalizedConsidered * familySize)):will be equivalent to:
if ((rank < self.config.cullPeaks.rankSufficient) or
(rank < self.config.cullPeaks.rankConsidered and
rank < self.config.cullPeaks.rankNormalizedConsidered * familySize)):and peak culling will be still active in spite of the instruction of the docstring.
Paul Price, another peak-culling review for you, fixing the issue Mineo brought up.
I'm planning to reprocess a COSMOS patch today to check out the effects of various peak-culling options and test that this now works as advertised.