Python tool for aircraft Doppler audio geolocation using historical ADS-B flight data (Source-available)
Python acoustic-geolocationads-baircraft-trackingairplaneaudio-forensicsdoppler-effectdoppler-shiftgeolocationosintsignal-processing
Save the audio checkpoint only after validating review exclusions
Stecca37e231c3d491
diff --git a/src/dopplergeist/automatic.py b/src/dopplergeist/automatic.pyindex de53b93..576ef21 100644--- a/src/dopplergeist/automatic.py+++ b/src/dopplergeist/automatic.py@@ -170,7 +170,6 @@ def analyze(request, output_dir, config=None, progress=lambda *args, **kwargs: Nrecording, output_dir=output / "discovery", settings=discovery_settings,plot_event_details=True, event_audio=True,progress_callback=_throttled(report_discovery_progress))]- _save_audio_checkpoint(output, request, config)state["recording"] = recording.metadataprovenance["discovered_events"] = len({event.get("harmonic_group_id", event["event_id"]) for event in events})provenance["discovered_ridges"] = len(events)@@ -181,6 +180,8 @@ def analyze(request, output_dir, config=None, progress=lambda *args, **kwargs: Nreturn finish("failed", "invalid_configuration",f"Excluded event IDs were not discovered: {', '.join(missing)}")events = [event for event in events if event["event_id"] not in set(excluded_event_ids)]+ if not resume:+ _save_audio_checkpoint(output, request, config)provenance["searched_events"] = len({event.get("harmonic_group_id", event["event_id"]) for event in events})provenance["searched_ridges"] = len(events)state["events"] = events