mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
PR feedback: the threshold constants were obscure. Rename to state intent — _SAP10_2_FLOOR -> _MIN_TRUSTED_SAP_VERSION, _SAP_ABS_TOL -> _MAX_SAP_SCORE_DIVERGENCE, _REL_TOL -> _MAX_RELATIVE_DIVERGENCE — matching the existing _log_divergence vocabulary, and fold the rationale into the comments: the calculator emits a continuous SAP score vs the lodged rounded integer, so a gap up to 0.5 is rounding, beyond it a genuine disagreement worth recording; CO2/PEUI are not rounded so they get a 1% relative band. Behaviour unchanged. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| bill.py | ||
| bill_derivation.py | ||
| calculator_rebaseliner.py | ||
| performance.py | ||
| property_baseline_performance.py | ||
| rebaseliner.py | ||
| sap_fuel.py | ||