Caveats & contributing

Status

This is an alpha release. Pin a version when reproducibility matters. The hierarchical gate model refuses budgets it cannot resolve and references without a localised correlation peak; such requests need a pinned chain with explicit coarse thresholds.

Wheels target CPython 3.11–3.15 on Linux x86-64 and macOS arm64. Other platforms build from source and need NumPy and a C compiler. CPU filtering uses one thread; callers control parallelism across independent filters.

Contributing

Issues and pull requests are welcome. Useful contributions include device-specific benchmarks, calibration measurements and testing on additional hardware.

git clone https://github.com/ahnitz/matchedfilter
cd matchedfilter
git submodule update --init third_party/highway
pip install -e .
pytest

GPU kernels are written in Slang. Rebuild the shipped SPIR-V, Metal and PTX kernels and their manifests with python tools/kernel_variants.py build --slangc /path/to/slangc. The tooling map identifies benchmark, calibration and historical research scripts. The performance checks include opt-in timing gates and comparison with a saved baseline.

Search contracts

tests/test_search_contracts.py pins the search-level contracts (noise and injection behaviour per engine, lazy template loading, the gate chain's pool and thresholds, autotuning). The standard benchmark is the ladder, tools/ladder.py. When a fidelity bug, threshold contract violation or autotuning failure is fixed, add a test that fails on the old code to the file that covers that behaviour.