Skip to content

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

Bound ridge-overlap checks and abstain when incomplete

Cinna Davisafef6302a8a8
diff --git a/tests/test_real_shared_ridge_scoring.py b/tests/test_real_shared_ridge_scoring.py
index f9de1d9..91cd8f8 100644
--- a/tests/test_real_shared_ridge_scoring.py
+++ b/tests/test_real_shared_ridge_scoring.py
@@ -10,7 +10,7 @@ import numpy as np
import pandas as pd
import pytest
-from dopplergeist.confidence import _possible_harmonic_overlap
+from dopplergeist.confidence import _possible_harmonic_overlap, _screen_harmonic_overlap
from dopplergeist.contracts import validate_event
from dopplergeist import pipeline, tiled_search
from dopplergeist.data_access import FlightIndex, content_hash
@@ -71,6 +71,18 @@ def test_real_shared_paths_keep_every_observation_and_each_separate_hypothesis()
np.testing.assert_array_equal(first, second)
+def test_real_overlap_screen_reports_an_exhausted_pair_budget():
+ events = recorded_events("shared")
+ screened = _screen_harmonic_overlap(events, pair_budget=0)
+ assert screened["overlap"] is None
+ assert screened["assessment"] == {
+ "exhaustive": False,
+ "conclusive": False,
+ "pairs_examined": 0,
+ "pair_budget": 0,
+ }
+
+
@pytest.mark.parametrize("floor", [None, 0.0])
def test_real_joint_subset_is_unknown_before_any_trajectory_access(floor):
events, measurements = prepare_events(recorded_events("shared"))