fix: preserve portable PHAT score semantics
This commit is contained in:
@@ -248,7 +248,9 @@ export function detectBandPeaks(rawMap, scan, options = {}) {
|
||||
position: [...peak.position],
|
||||
rawValue: peak.value,
|
||||
rawScale,
|
||||
...(rawScale === "power" ? { rawPower: peak.value } : {}),
|
||||
...(rawScale === "power"
|
||||
? { rawPower: peak.value }
|
||||
: { rawScore: peak.value }),
|
||||
});
|
||||
if (detections.length === peakDetection.maximumDetections) break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user