mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-12 13:29:04 +00:00
effective-lodged-divergence is silent for implausible lodged scores (< 13) 🟩
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
cf097afc00
commit
fe1d04983b
1 changed files with 6 additions and 1 deletions
|
|
@ -175,9 +175,14 @@ def _zero_works_post_differs(a: PropertyAudit) -> Optional[str]:
|
|||
def _effective_lodged_divergence(a: PropertyAudit) -> Optional[str]:
|
||||
"""The Effective baseline is far from the lodged accredited figure (≥15 SAP).
|
||||
Often legitimate (overrides / pre-SAP10 rebaseline), but worth a look — a big
|
||||
gap can also mean a bad override or a calculator divergence."""
|
||||
gap can also mean a bad override or a calculator divergence.
|
||||
|
||||
Lodged scores below 13 are handed off to ``implausible-lodged-score`` — they
|
||||
indicate corrupt upstream EPC register data, not a modelling divergence."""
|
||||
if a.effective_sap is None or a.lodged_sap is None:
|
||||
return None
|
||||
if a.lodged_sap < 13:
|
||||
return None
|
||||
gap = a.effective_sap - a.lodged_sap
|
||||
if abs(gap) < 15:
|
||||
return None
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue