mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-27 23:35:01 +00:00
Normalize PasHub site-notes emitter label to its SAP10 code 🟥
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
2f0d5a25f1
commit
8d45fcb544
1 changed files with 4 additions and 5 deletions
|
|
@ -165,10 +165,9 @@ class TestFromSiteNotesExample1:
|
|||
assert result.sap_heating.main_heating_details[0].main_fuel_type == 26
|
||||
|
||||
def test_main_heating_emitter(self, result: EpcPropertyData) -> None:
|
||||
# heating_and_hot_water.main_heating.emitter: "Radiators"
|
||||
assert (
|
||||
result.sap_heating.main_heating_details[0].heat_emitter_type == "Radiators"
|
||||
)
|
||||
# heating_and_hot_water.main_heating.emitter: "Radiators" is normalized
|
||||
# at the mapper boundary to SAP10 emitter code 1 (matching Elmhurst).
|
||||
assert result.sap_heating.main_heating_details[0].heat_emitter_type == 1
|
||||
|
||||
def test_main_heating_no_fghrs(self, result: EpcPropertyData) -> None:
|
||||
# heating_and_hot_water.main_heating.flue_gas_heat_recovery_system: false
|
||||
|
|
@ -380,7 +379,7 @@ class TestFromSiteNotesExample1:
|
|||
MainHeatingDetail(
|
||||
has_fghrs=False,
|
||||
main_fuel_type=26,
|
||||
heat_emitter_type="Radiators",
|
||||
heat_emitter_type=1,
|
||||
emitter_temperature="Unknown",
|
||||
fan_flue_present=True,
|
||||
main_heating_control="Programmer, room thermostat and TRVs",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue