+65
−0
+1
−1
+5
−0
+181
−86
+62
−0
Loading
- Fix corner lookup bug in compute_release_to_meet_target_power: changed
else-if chain to separate if statements so multiple corners can be set
from the same table entry when h_lo==h_hi or p_lo==p_hi
- Fix reverse function (compute_power_given_actual_release) to use
consistent cell selection with forward function, ensuring P→Q→P'
roundtrip consistency
- Add PyO3 exports for compute_release and compute_power functions
to enable direct testing from Python
- Add comprehensive HPF test suite (tests/test_hpf.py) with 74 tests:
- Grid corner, edge, and interior roundtrip tests
- Statistical robustness tests with random (H,P) pairs
- Performance benchmarks
- Edge cases and diagnostics
- Update CLAUDE.md with testing instructions
- Fix Cargo.toml edition (2025 -> 2021) for compatibility
- Add pytest as dev dependency
Co-Authored-By:
Claude Opus 4.5 <noreply@anthropic.com>