mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
The 000474 / 000477 / 000487 fixtures lodged sap_windows without an explicit u_value, relying on make_window's default u_value=2.8 (raw, pre-curtain-resistance). PDF lodges TWO window types per fixture: - Windows 1 (g_⊥=0.72): post-2002 double, raw U=2.0 → U_eff=1.8519 - Windows 2 (g_⊥=0.76): pre-2002 double, raw U=2.8 → U_eff=2.5180 - (000487 Windows 2 special: post-2022, raw U=1.4 → U_eff=1.3258) Lodging all windows at u_value=2.8 over-counted window heat loss (LINE_27/LINE_33) by 1.5-3% on mixed-glazing fixtures. The previous test_section_3 LINE_33 pin passed because it used a pre-computed WINDOW_AVG_RAW_U_VALUE constant rather than cert-derived sap_windows. Impact on `sap.space_heating_kwh_per_yr` vs PDF: fixture | before | after | gap before | gap after --------|------------|------------|------------|---------- 000474 | 10765.85 | 10615.86 | +152.99 | +3.00 (-98%) 000477 | 10318.34 | 10106.89 | +207.14 | -4.31 (-98%) 000480 | 12397.99 | 12397.99 | -0.58 | -0.58 (unchanged; all windows raw 2.8) 000487 | 12606.95 | 12303.35 | +1772.17 | +1468.57 (RR defect remains) 000490 | 11184.06 | 11184.06 | +0.78 | +0.78 (unchanged) 000516 | 12372.62 | 12372.62 | -37.70 | -37.70 (unchanged) The 000474 / 000477 cascade biases collapse by 98% — remaining 3-4 kWh residuals are precision-level and likely propagate from §4 HW or §7 T_i drift (sub-0.1°C). 000487 still 13.6% over because the RR lodgement defect (no detailed_surfaces, missing exposed_floor on Ext1, missing roof_insulation, U=0.86 second gable variant) is a separate slice. Cascade pin count stays at 48 fail / 18 pass because abs=1e-4 is tight — 3 kWh > 1e-4. But the underlying numeric residual dropped 50×. Subsequent pins (main_fuel, ecf, cost, sap_continuous) will also tighten as this cascade flows downstream. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| src/domain | ||
| pyproject.toml | ||
| README.md | ||
domna-domain
Shared domain types — Property, Properties, BaselinePerformance, Plan, PlanPhase, Scenario, ScenarioPhase, ScenarioSnapshot, Recommendation, OptimisedPackage, EpcPropertyData, etc.
Boundary: types only. No persistence, no IO, no business logic. Other packages and services depend on domna-domain; this package depends on nothing internal.
Domain definitions live in ../../CONTEXT.md. New types added here must match the glossary terms.
Layout
src/domain/
├── __init__.py
├── property.py # Property, Properties, PropertyIdentity
├── site_notes.py
├── landlord_overrides.py
├── baseline_performance.py # lodged + effective pair (ADR-0004)
├── plan.py # Plan, PlanPhase, OptimisedPackage
├── scenario.py # Scenario, ScenarioPhase, ScenarioSnapshot (ADR-0005)
├── recommendation.py
├── geospatial.py
├── solar.py
├── anomaly_flags.py
└── ml/
├── __init__.py
├── transform.py # EpcMlTransform (versioned per §8.3)
└── schema.py
When datatypes/epc/domain/ folds in, the EPC schema types move under src/domain/epc/.