mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-27 23:35:01 +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
8.7 KiB
JSON
1 line
No EOL
8.7 KiB
JSON
{"uprn": 100051188789, "roofs": [{"description": {"value": "Pitched, 100 mm loft insulation", "language": "1"}, "energy_efficiency_rating": 3, "environmental_efficiency_rating": 3}], "walls": [{"description": {"value": "Solid brick, as built, no insulation (assumed)", "language": "1"}, "energy_efficiency_rating": 1, "environmental_efficiency_rating": 1}], "floors": [{"description": {"value": "Suspended, no insulation (assumed)", "language": "1"}, "energy_efficiency_rating": 0, "environmental_efficiency_rating": 0}], "status": "entered", "tenure": 1, "window": {"description": {"value": "Fully double glazed", "language": "1"}, "energy_efficiency_rating": 3, "environmental_efficiency_rating": 3}, "lighting": {"description": {"value": "Low energy lighting in 15% of fixed outlets", "language": "1"}, "energy_efficiency_rating": 2, "environmental_efficiency_rating": 2}, "postcode": "BD2 4JG", "hot_water": {"description": {"value": "From main system", "language": "1"}, "energy_efficiency_rating": 3, "environmental_efficiency_rating": 3}, "post_town": "", "built_form": 1, "created_at": "2017-07-04 18:14:05.000000", "door_count": 2, "glazed_area": 1, "region_code": 3, "report_type": 2, "sap_heating": {"cylinder_size": 3, "water_heating_code": 901, "water_heating_fuel": 26, "cylinder_thermostat": "Y", "instantaneous_wwhrs": {"rooms_with_bath_and_or_shower": 1, "rooms_with_mixer_shower_no_bath": 0, "rooms_with_bath_and_mixer_shower": 0}, "secondary_fuel_type": 29, "main_heating_details": [{"has_fghrs": "N", "main_fuel_type": 26, "boiler_flue_type": 2, "heat_emitter_type": 1, "emitter_temperature": "NA", "main_heating_number": 1, "main_heating_control": 2104, "main_heating_category": 2, "main_heating_fraction": 1, "sap_main_heating_code": 117, "central_heating_pump_age": 0, "main_heating_data_source": 2}], "immersion_heating_type": "NA", "secondary_heating_type": 691, "cylinder_insulation_type": 2, "has_fixed_air_conditioning": "false", "cylinder_insulation_thickness": 50}, "sap_version": 9.92, "schema_type": "RdSAP-Schema-17.1", "uprn_source": "Energy Assessor", "country_code": "EAW", "main_heating": [{"description": {"value": "Boiler and radiators, mains gas", "language": "1"}, "energy_efficiency_rating": 4, "environmental_efficiency_rating": 4}], "dwelling_type": {"value": "Detached bungalow", "language": "1"}, "language_code": 1, "property_type": 1, "address_line_1": "addr-8c2aed30f5eb", "assessment_type": "RdSAP", "completion_date": "2017-07-04", "inspection_date": "2017-07-04", "extensions_count": 0, "measurement_type": 1, "total_floor_area": 85, "transaction_type": 1, "conservatory_type": 1, "heated_room_count": 5, "pvc_window_frames": "false", "registration_date": "2017-07-04", "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": {"value": "Room heaters, electric", "language": "1"}, "energy_efficiency_rating": 0, "environmental_efficiency_rating": 0}, "sap_building_parts": [{"identifier": "Main Dwelling", "wall_dry_lined": "N", "wall_thickness": 310, "floor_heat_loss": 7, "roof_construction": 4, "wall_construction": 3, "building_part_number": 1, "sap_floor_dimensions": [{"floor": 0, "room_height": {"value": 2.52, "quantity": "metres"}, "floor_insulation": 1, "total_floor_area": {"value": 85.47, "quantity": "square metres"}, "party_wall_length": 0, "floor_construction": 2, "heat_loss_perimeter": {"value": 37.22, "quantity": "metres"}}], "wall_insulation_type": 4, "construction_age_band": "C", "party_wall_construction": 0, "wall_thickness_measured": "Y", "roof_insulation_location": 2, "roof_insulation_thickness": "100mm", "wall_insulation_thickness": "NI"}], "low_energy_lighting": 15, "solar_water_heating": "N", "habitable_room_count": 5, "heating_cost_current": {"value": 1304, "currency": "GBP"}, "insulated_door_count": 0, "co2_emissions_current": 7.3, "energy_rating_average": 60, "energy_rating_current": 39, "lighting_cost_current": {"value": 105, "currency": "GBP"}, "main_heating_controls": [{"description": {"value": "Programmer and room thermostat", "language": "1"}, "energy_efficiency_rating": 3, "environmental_efficiency_rating": 3}], "multiple_glazing_type": 3, "open_fireplaces_count": 0, "has_hot_water_cylinder": "true", "heating_cost_potential": {"value": 587, "currency": "GBP"}, "hot_water_cost_current": {"value": 225, "currency": "GBP"}, "mechanical_ventilation": 0, "percent_draughtproofed": 100, "suggested_improvements": [{"sequence": 1, "typical_saving": {"value": 56, "currency": "GBP"}, "indicative_cost": "\u00a3100 - \u00a3350", "improvement_type": "A", "improvement_details": {"improvement_number": 5}, "improvement_category": 5, "energy_performance_rating": 41, "environmental_impact_rating": 37}, {"sequence": 2, "typical_saving": {"value": 408, "currency": "GBP"}, "indicative_cost": "\u00a34,000 - \u00a314,000", "improvement_type": "Q", "improvement_details": {"improvement_number": 7}, "improvement_category": 5, "energy_performance_rating": 55, "environmental_impact_rating": 50}, {"sequence": 3, "typical_saving": {"value": 131, "currency": "GBP"}, "indicative_cost": "\u00a3800 - \u00a31,200", "improvement_type": "W1", "improvement_details": {"improvement_number": 57}, "improvement_category": 5, "energy_performance_rating": 60, "environmental_impact_rating": 56}, {"sequence": 4, "typical_saving": {"value": 21, "currency": "GBP"}, "indicative_cost": "\u00a315 - \u00a330", "improvement_type": "C", "improvement_details": {"improvement_number": 2}, "improvement_category": 5, "energy_performance_rating": 61, "environmental_impact_rating": 57}, {"sequence": 5, "typical_saving": {"value": 38, "currency": "GBP"}, "indicative_cost": "\u00a385", "improvement_type": "E", "improvement_details": {"improvement_number": 35}, "improvement_category": 5, "energy_performance_rating": 62, "environmental_impact_rating": 58}, {"sequence": 6, "typical_saving": {"value": 38, "currency": "GBP"}, "indicative_cost": "\u00a3350 - \u00a3450", "improvement_type": "G", "improvement_details": {"improvement_number": 13}, "improvement_category": 5, "energy_performance_rating": 64, "environmental_impact_rating": 60}, {"sequence": 7, "typical_saving": {"value": 176, "currency": "GBP"}, "indicative_cost": "\u00a32,200 - \u00a33,000", "improvement_type": "I", "improvement_details": {"improvement_number": 20}, "improvement_category": 5, "energy_performance_rating": 70, "environmental_impact_rating": 69}, {"sequence": 8, "typical_saving": {"value": 45, "currency": "GBP"}, "indicative_cost": "\u00a34,000 - \u00a36,000", "improvement_type": "N", "improvement_details": {"improvement_number": 19}, "improvement_category": 5, "energy_performance_rating": 72, "environmental_impact_rating": 72}, {"sequence": 9, "typical_saving": {"value": 259, "currency": "GBP"}, "indicative_cost": "\u00a35,000 - \u00a38,000", "improvement_type": "U", "improvement_details": {"improvement_number": 34}, "improvement_category": 5, "energy_performance_rating": 82, "environmental_impact_rating": 81}], "co2_emissions_potential": 2.0, "energy_rating_potential": 82, "lighting_cost_potential": {"value": 57, "currency": "GBP"}, "schema_version_original": "LIG-17.0", "alternative_improvements": [{"sequence": 1, "typical_saving": {"value": 143, "currency": "GBP"}, "improvement_type": "J2", "improvement_details": {"improvement_number": 54}, "improvement_category": 6, "energy_performance_rating": 69, "environmental_impact_rating": 91}, {"sequence": 2, "typical_saving": {"value": 162, "currency": "GBP"}, "improvement_type": "Z1", "improvement_details": {"improvement_number": 51}, "improvement_category": 6, "energy_performance_rating": 71, "environmental_impact_rating": 74}, {"sequence": 3, "typical_saving": {"value": 263, "currency": "GBP"}, "improvement_type": "Z3", "improvement_details": {"improvement_number": 53}, "improvement_category": 6, "energy_performance_rating": 73, "environmental_impact_rating": 69}], "hot_water_cost_potential": {"value": 76, "currency": "GBP"}, "renewable_heat_incentive": {"water_heating": 3301, "impact_of_loft_insulation": -778, "impact_of_solid_wall_insulation": -5622, "space_heating_existing_dwelling": 16421}, "energy_consumption_current": 484, "has_fixed_air_conditioning": "false", "multiple_glazed_proportion": 100, "calculation_software_version": "2.0.0.0", "energy_consumption_potential": 130, "environmental_impact_current": 35, "fixed_lighting_outlets_count": 20, "windows_transmission_details": {"u_value": 3.1, "data_source": 2, "solar_transmittance": 0.76}, "current_energy_efficiency_band": "E", "environmental_impact_potential": 81, "has_heated_separate_conservatory": "false", "potential_energy_efficiency_band": "B", "co2_emissions_current_per_floor_area": 85, "low_energy_fixed_lighting_outlets_count": 3} |