From 2498192b72e34593fc14d09600c83c9e47e73327 Mon Sep 17 00:00:00 2001 From: Jun-te Kim Date: Wed, 24 Jun 2026 11:35:31 +0000 Subject: [PATCH] docs(fuel): TODO to price code-39 electricity by actual tariff (Khalim) Note that code 39 "any tariff" currently collapses to the standard electricity rate; future work should resolve it to the dwelling's actual tariff (off-peak vs standard) so off-peak electric heating prices correctly. Comment-only. Co-Authored-By: Claude Opus 4.8 (1M context) --- domain/sap10_calculator/tables/table_32.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/domain/sap10_calculator/tables/table_32.py b/domain/sap10_calculator/tables/table_32.py index 6eee48df..5bcb7863 100644 --- a/domain/sap10_calculator/tables/table_32.py +++ b/domain/sap10_calculator/tables/table_32.py @@ -112,6 +112,10 @@ API_FUEL_TO_TABLE_32: Final[dict[int, int]] = { # electric system, cost/CO2/PE = standard electricity). Resolve to standard # electricity (30) so it classifies as electric and prices at the standard # rate — otherwise it now raises UnpricedFuelCode (was: mis-rated non-electric). + # TODO (Khalim): "any tariff" collapses to the STANDARD electricity rate. In + # future, resolve 39 to the dwelling's actual tariff (meter_type → off-peak + # 7h/10h/18h/24h vs standard) so off-peak electric heating is priced at the + # off-peak rate rather than always standard. 39: 30, }