mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-12 13:29:04 +00:00
The committed gate needs frozen, reproducible data without dumping real UK addresses into the repo. Add: - harness anonymise_payload + stable_hash: hash street address + cert number into opaque, dedup-stable tokens; blank secondary address lines + post_town; keep postcode + all component/lodged fields (gov data is OGL). Unit-tested. - scripts/build_epc_prediction_fixture.py: curate qualifying postcodes (>=1 SAP 10.2 target + >=2 distinct addresses) from the local scratch corpus, anonymise, freeze under tests/fixtures/epc_prediction/. - The frozen fixture: 15 postcodes / 280 certs / 36 SAP-10.2 targets. Verified no plaintext address_line_1 and post_town all blank. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 line
No EOL
7.4 KiB
JSON
1 line
No EOL
7.4 KiB
JSON
{"uprn": 100022784850, "roofs": [{"description": "Pitched, no insulation (assumed)", "energy_efficiency_rating": 1, "environmental_efficiency_rating": 1}], "walls": [{"description": "Solid brick, as built, no insulation (assumed)", "energy_efficiency_rating": 1, "environmental_efficiency_rating": 1}], "floors": [{"description": "Suspended, no insulation (assumed)", "energy_efficiency_rating": 0, "environmental_efficiency_rating": 0}, {"description": "Solid, no insulation (assumed)", "energy_efficiency_rating": 0, "environmental_efficiency_rating": 0}], "status": "entered", "tenure": 3, "window": {"description": "Fully double glazed", "energy_efficiency_rating": 3, "environmental_efficiency_rating": 3}, "lighting": {"description": "Low energy lighting in all fixed outlets", "energy_efficiency_rating": 5, "environmental_efficiency_rating": 5}, "postcode": "W10 4HL", "hot_water": {"description": "From main system", "energy_efficiency_rating": 4, "environmental_efficiency_rating": 4}, "post_town": "", "built_form": 4, "created_at": "2016-03-18 16:44:11.000000", "door_count": 2, "glazed_area": 1, "glazing_gap": 12, "region_code": 17, "report_type": 2, "sap_heating": {"cylinder_size": 1, "water_heating_code": 901, "water_heating_fuel": 26, "instantaneous_wwhrs": {"rooms_with_bath_and_or_shower": 1, "rooms_with_mixer_shower_no_bath": 0, "rooms_with_bath_and_mixer_shower": 1}, "main_heating_details": [{"has_fghrs": "N", "main_fuel_type": 26, "boiler_flue_type": 2, "fan_flue_present": "Y", "heat_emitter_type": 1, "emitter_temperature": 0, "main_heating_number": 1, "main_heating_control": 2107, "main_heating_category": 2, "main_heating_fraction": 1, "central_heating_pump_age": 0, "main_heating_data_source": 1, "main_heating_index_number": 16840}], "immersion_heating_type": "NA", "has_fixed_air_conditioning": "false"}, "sap_version": 9.92, "schema_type": "RdSAP-Schema-17.0", "uprn_source": "Energy Assessor", "country_code": "EAW", "main_heating": [{"description": "Boiler and radiators, mains gas", "energy_efficiency_rating": 4, "environmental_efficiency_rating": 4}], "dwelling_type": "Mid-terrace house", "language_code": 1, "property_type": 0, "address_line_1": "addr-e2c7c375ba51", "assessment_type": "RdSAP", "completion_date": "2016-03-18", "inspection_date": "2016-03-18", "extensions_count": 1, "measurement_type": 1, "total_floor_area": 77, "transaction_type": 8, "conservatory_type": 1, "heated_room_count": 3, "pvc_window_frames": "true", "registration_date": "2016-03-18", "sap_energy_source": {"mains_gas": "Y", "meter_type": 2, "photovoltaic_supply": {"none_or_no_details": {"pv_connection": 0, "percent_roof_area": 0}}, "wind_turbines_count": 0, "wind_turbines_terrain_type": 2}, "secondary_heating": {"description": "None", "energy_efficiency_rating": 0, "environmental_efficiency_rating": 0}, "sap_building_parts": [{"identifier": "Main Dwelling", "wall_dry_lined": "N", "wall_thickness": 260, "floor_heat_loss": 7, "roof_construction": 5, "wall_construction": 3, "building_part_number": 1, "sap_floor_dimensions": [{"floor": 0, "room_height": {"value": 2.6, "quantity": "metres"}, "floor_insulation": 1, "total_floor_area": {"value": 29.01, "quantity": "square metres"}, "party_wall_length": {"value": 12.68, "quantity": "metres"}, "floor_construction": 2, "heat_loss_perimeter": {"value": 6.34, "quantity": "metres"}}, {"floor": 1, "room_height": {"value": 2.74, "quantity": "metres"}, "total_floor_area": {"value": 29.28, "quantity": "square metres"}, "party_wall_length": {"value": 13.28, "quantity": "metres"}, "heat_loss_perimeter": {"value": 6.05, "quantity": "metres"}}], "wall_insulation_type": 4, "construction_age_band": "B", "party_wall_construction": 0, "wall_thickness_measured": "Y", "roof_insulation_location": 4, "roof_insulation_thickness": "ND", "wall_insulation_thickness": "NI"}, {"identifier": "Extension 1", "wall_dry_lined": "N", "wall_thickness": 280, "floor_heat_loss": 7, "roof_construction": 5, "wall_construction": 3, "building_part_number": 2, "sap_floor_dimensions": [{"floor": 0, "room_height": {"value": 2.3, "quantity": "metres"}, "floor_insulation": 1, "total_floor_area": {"value": 9.49, "quantity": "square metres"}, "party_wall_length": {"value": 2.66, "quantity": "metres"}, "floor_construction": 1, "heat_loss_perimeter": {"value": 6.23, "quantity": "metres"}}, {"floor": 1, "room_height": {"value": 2.2, "quantity": "metres"}, "total_floor_area": {"value": 9.49, "quantity": "square metres"}, "party_wall_length": {"value": 2.66, "quantity": "metres"}, "heat_loss_perimeter": {"value": 6.23, "quantity": "metres"}}], "wall_insulation_type": 4, "construction_age_band": "B", "party_wall_construction": 0, "wall_thickness_measured": "Y", "roof_insulation_location": 4, "roof_insulation_thickness": "ND", "wall_insulation_thickness": "NI"}], "low_energy_lighting": 100, "solar_water_heating": "N", "habitable_room_count": 3, "heating_cost_current": {"value": 739, "currency": "GBP"}, "insulated_door_count": 0, "co2_emissions_current": 3.8, "energy_rating_average": 60, "energy_rating_current": 59, "lighting_cost_current": {"value": 52, "currency": "GBP"}, "main_heating_controls": [{"description": "Programmer, TRVs and bypass", "energy_efficiency_rating": 3, "environmental_efficiency_rating": 3}], "multiple_glazing_type": 3, "open_fireplaces_count": 0, "has_hot_water_cylinder": "false", "heating_cost_potential": {"value": 563, "currency": "GBP"}, "hot_water_cost_current": {"value": 88, "currency": "GBP"}, "mechanical_ventilation": 0, "percent_draughtproofed": 100, "suggested_improvements": [{"sequence": 1, "typical_saving": {"value": 144, "currency": "GBP"}, "indicative_cost": "14,000", "improvement_type": "Q", "improvement_details": {"improvement_number": 7}, "improvement_category": 5, "energy_performance_rating": 66, "environmental_impact_rating": 61}, {"sequence": 2, "typical_saving": {"value": 32, "currency": "GBP"}, "indicative_cost": 450, "improvement_type": "G", "improvement_details": {"improvement_number": 14}, "improvement_category": 5, "energy_performance_rating": 67, "environmental_impact_rating": 63}, {"sequence": 3, "typical_saving": {"value": 33, "currency": "GBP"}, "indicative_cost": "6,000", "improvement_type": "N", "improvement_details": {"improvement_number": 19}, "improvement_category": 5, "energy_performance_rating": 68, "environmental_impact_rating": 65}, {"sequence": 4, "typical_saving": {"value": 274, "currency": "GBP"}, "indicative_cost": "8,000", "improvement_type": "U", "improvement_details": {"improvement_number": 34}, "improvement_category": 5, "energy_performance_rating": 79, "environmental_impact_rating": 75}], "co2_emissions_potential": 1.8, "energy_rating_potential": 79, "lighting_cost_potential": {"value": 52, "currency": "GBP"}, "schema_version_original": "LIG-17.0", "hot_water_cost_potential": {"value": 55, "currency": "GBP"}, "renewable_heat_incentive": {"water_heating": 1812, "impact_of_loft_insulation": -2969, "impact_of_solid_wall_insulation": -3126, "space_heating_existing_dwelling": 12064}, "energy_consumption_current": 278, "has_fixed_air_conditioning": "false", "multiple_glazed_proportion": 100, "calculation_software_version": "2.06r14", "energy_consumption_potential": 130, "environmental_impact_current": 52, "fixed_lighting_outlets_count": 10, "current_energy_efficiency_band": "D", "environmental_impact_potential": 75, "has_heated_separate_conservatory": "false", "potential_energy_efficiency_band": "C", "co2_emissions_current_per_floor_area": 49, "low_energy_fixed_lighting_outlets_count": 10} |