mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
Adds SECTION_7_LIVING_AREA_FRACTION, SECTION_7_CONTROL_TYPE,
SECTION_7_RESPONSIVENESS, SECTION_7_THERMAL_MASS_PARAMETER_KJ_PER_M2_K
plus LINE_85..LINE_94 expected outputs across all 6 _elmhurst_worksheet_*
fixtures, and an ALL_FIXTURES-parametrised end-to-end test.
The test sources its inputs from §1-§6 fixture pins:
(84) monthly total gains = LINE_73 + LINE_83
(39) monthly HTC = LINE_37 + 0.33·V·LINE_25_M
external temp = Appendix U Table U1 region 0 (UK-avg, SAP rating pass)
Asserts every per-zone line ref to abs=5e-3 °C / unitless:
(85) T_h1 × 6 = 6
(86) η_living monthly × 12 × 6 = 72
(87) MIT living monthly × 12 × 6 = 72
(88) T_h2 monthly × 12 × 6 = 72
(89) η_elsewhere monthly × 12 × 6 = 72
(90) MIT elsewhere monthly × 12 × 6 = 72
(91) f_LA × 6 = 6
(92) blended MIT monthly × 12 × 6 = 72
(93) adjusted MIT monthly × 12 × 6 = 72
(94) η_whole monthly × 12 × 6 = 72
total = 588 GREEN assertions
All 6 fixtures land at default scalars (control_type=2 gas combi w/
programmer+RT, R=1.0 Table 4d gas radiators, TMP=250 SAP mass-medium
default, Table 4e adj=0). Per-fixture f_LA reflects habitable_rooms_count.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
||
|---|---|---|
| .. | ||
| domain | ||
| fetchers | ||
| repos | ||
| utils | ||
| README.md | ||
Shared packages
Workspace packages consumed by services/*. Each package is its own Python distribution with its own pyproject.toml; services import via the workspace dependency mechanism ({ workspace = true }).
| Package | Purpose |
|---|---|
domain/ |
Shared domain types — Property, BaselinePerformance, Plan, Scenario, EpcPropertyData, etc. No persistence, no IO, no business logic. |
repos/ |
Persistence layer — one repo per aggregate. Owns the SQL. Depends on domain. |
fetchers/ |
External API clients (gov EPC, Ofgem, Google Solar, etc.). Depend on domain for response shapes. |
utils/ |
Cross-cutting infra — logging, S3, CloudWatch URL builders, SQS task helpers. |
Adding a new shared package
Only when a real second consumer materialises. Don't pre-shatter (repos-epc, repos-property, ...) — split when a deployment needs to drop a dep, not before.
See ../ara_backend_design.md §11 for the broader monorepo layout and ../CONTEXT.md for the domain glossary that names the types living in domain/.