mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-12 13:29:04 +00:00
`_synthesise_20_0_0_sap_windows` passed `schema.multiple_glazing_type` straight into `_api_cascade_glazing_type`, which raised UnmappedApiCode on the "ND" (Not Defined) string that the 20.0.0 corpus lodges alongside the 1-8 integer codes — failing the mapper-coverage guard on every ND-glazed 20.0.0 cert. Mirror the existing 18.0/19.0/17.x seams: route integer codes through the cascade, fall the "ND" string back to the DG-modal default (cascade code 2 → daylight g_L 0.80). Also corrects the 20.0.0 schema field type `int` → `Union[int, str]` to match the data (as 18.0 already does), which keeps the isinstance guard pyright-clean. Pre-existing failure (present before this branch's recent commits), not in the handover regression gate. Fixes all 15 RdSAP-Schema-20.0.0 ND certs; test_mapper_corpus 6002/6002 pass. pyright net-zero. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| domain | ||
| loaders | ||
| schema | ||
| search | ||
| surveys | ||
| __init__.py | ||
| construction_age_band.py | ||
| efficiency.py | ||
| floor.py | ||
| fuel.py | ||
| heating_controls.py | ||
| hotwater.py | ||
| main_heating.py | ||
| property_type_built_form.py | ||
| roof.py | ||
| walls.py | ||
| windows.py | ||