Skip to content

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

Avoid hashing unique trajectories during tile loading (#7)

Cinna Davisf0b8ba7c3d1a
diff --git a/src/aircraft_geoloc/tiled_search.py b/src/aircraft_geoloc/tiled_search.py
index d90d75a..68e5394 100644
--- a/src/aircraft_geoloc/tiled_search.py
+++ b/src/aircraft_geoloc/tiled_search.py
@@ -101,8 +101,8 @@ def _tracks(indexes, bounds, time_range, budget):
for track in index.query(bounds, time_range):
# Same track from overlapping daily/source coverage must be identical;
# silently dropping different geometry would change the physics.
- signature = content_hash([track.id, track.time.tolist(), track.xyz.tolist(), track.spline.c.tolist()])
if track.id in identities:
+ signature = content_hash([track.id, track.time.tolist(), track.xyz.tolist(), track.spline.c.tolist()])
previous = next(t for t in tracks if t.id == track.id)
if signature != content_hash([previous.id, previous.time.tolist(), previous.xyz.tolist(), previous.spline.c.tolist()]):
raise DataUnavailable(f"Conflicting flight segment identity: {track.id}")