Просмотр исходного кода

feat: harden refinement windows with fallbacks

master
Jan Svabenik 7 часов назад
Родитель
Сommit
ace6590b79
1 измененных файлов: 13 добавлений и 0 удалений
  1. +13
    -0
      internal/pipeline/refiner.go

+ 13
- 0
internal/pipeline/refiner.go Просмотреть файл

@@ -48,6 +48,19 @@ func RefineCandidates(candidates []Candidate, windows []RefinementWindow, spectr
if i < len(windows) {
window = windows[i]
}
if window.CenterHz == 0 {
window.CenterHz = c.CenterHz
}
if window.SpanHz <= 0 {
if c.BandwidthHz > 0 {
window.SpanHz = c.BandwidthHz
} else {
window.SpanHz = 12000
}
}
if window.Source == "" {
window.Source = "candidate"
}
out = append(out, Refinement{
Candidate: c,
Window: window,


Загрузка…
Отмена
Сохранить