Skip to content

Python tool for aircraft Doppler audio geolocation using historical ADS-B flight data (Source-available)

Use declared exact clocks before CPA-derived subset anchoring (#7)

Cinna Davis3d8f30c2fd1f
diff --git a/src/aircraft_geoloc/tiled_search.py b/src/aircraft_geoloc/tiled_search.py
index b64721b..3d57e1f 100644
--- a/src/aircraft_geoloc/tiled_search.py
+++ b/src/aircraft_geoloc/tiled_search.py
@@ -164,6 +164,8 @@ def _score(points, tracks, events, measurements, budget, parameters, filters, st
for candidate in candidates:
settings = dict(parameters)
if start_window:
+ if start_window[0] == start_window[1] and settings.get("time_origin") is None:
+ settings["time_origin"] = start_window[0]
anchor = settings.get("time_origin")
if anchor is None:
anchor_event = candidate.get("event_indices", [0])[0]