Python tool for aircraft Doppler audio geolocation using historical ADS-B flight data (Source-available)
Python acoustic-geolocationads-baircraft-trackingairplaneaudio-forensicsdoppler-effectdoppler-shiftgeolocationosintsignal-processing
Require positive scales for group score bounds
Cinna Davis29bc655c8b43
diff --git a/src/dopplergeist/search.py b/src/dopplergeist/search.pyindex d673508..f8fa1ea 100644--- a/src/dopplergeist/search.py+++ b/src/dopplergeist/search.py@@ -379,7 +379,12 @@ def score_candidate(candidate, point, tracks, events, measurements, mode="bright# The group-count ceiling is valid only for the normalized score's positive loss scales.from .matching import _frequency_scalefor event in events:- _frequency_scale(event)+ try:+ scale = float(_frequency_scale(event))+ except (TypeError, ValueError, OverflowError) as error:+ raise ValueError("Frequency loss scales must be finite and positive") from error+ if not np.isfinite(scale) or scale <= 0:+ raise ValueError("Frequency loss scales must be finite and positive")observer = ecef(point.lat,point.lon,point.elev_m)# Derive one recording start from the first event; all other events retain# their true absolute geometry/time. This implements the locked offset.