mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
Two thin wrappers landing the aggregation step: (44)m = (42a)m + (42b)m + (42c)m Appendix J equation J13 (43) = V_d,shower,ave + V_d,bath,ave + V_d,other,ave J12 A subtle spec point caught here: (43) is the SUM OF THE COMPONENT ANNUAL AVERAGES (per the J12 text), not the days-weighted mean of (44)m. The two are arithmetically different because Table J2's days-weighted mean is 0.99973 rather than 1.0 — the "other uses" term contributes its unmodulated baseline (9.8N+14), and only the showers + baths terms get the days-weighted reduction. Spec-following the J12 wording matches the Elmhurst (43) values to 1e-3 L/day on both fixtures. annual_average_hot_water_other_uses_l_per_day exposes V_d,other,ave annual_average_hot_water_l_per_day composes the J12 sum total_hot_water_monthly_l_per_day J13 (44)m sum LINE_43 + LINE_44_M lodged on 000474 and 000490 fixtures. 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/.