mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-22 08:48:38 +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
6.3 KiB
JSON
1 line
No EOL
6.3 KiB
JSON
{"uprn": 10090853539, "roofs": [{"description": "(another dwelling above)", "energy_efficiency_rating": 0, "environmental_efficiency_rating": 0}], "walls": [{"description": "System built, with external insulation", "energy_efficiency_rating": 4, "environmental_efficiency_rating": 4}], "floors": [{"description": "Solid, no insulation (assumed)", "energy_efficiency_rating": 0, "environmental_efficiency_rating": 0}], "status": "entered", "tenure": 2, "window": {"description": "Fully double glazed", "energy_efficiency_rating": 4, "environmental_efficiency_rating": 4}, "lighting": {"description": "Low energy lighting in all fixed outlets", "energy_efficiency_rating": 5, "environmental_efficiency_rating": 5}, "postcode": "E15 3FA", "hot_water": {"description": "Electric immersion, off-peak", "energy_efficiency_rating": 3, "environmental_efficiency_rating": 2}, "post_town": "", "built_form": 3, "created_at": "2024-05-23 11:43:15", "door_count": 0, "glazed_area": 1, "region_code": 17, "report_type": 2, "sap_heating": {"cylinder_size": 3, "water_heating_code": 903, "water_heating_fuel": 29, "instantaneous_wwhrs": {"rooms_with_bath_and_or_shower": 1, "rooms_with_mixer_shower_no_bath": 0, "rooms_with_bath_and_mixer_shower": 0}, "main_heating_details": [{"has_fghrs": "N", "main_fuel_type": 29, "heat_emitter_type": 0, "emitter_temperature": "NA", "main_heating_number": 1, "main_heating_control": 2402, "main_heating_category": 7, "main_heating_fraction": 1, "sap_main_heating_code": 402, "main_heating_data_source": 2}], "immersion_heating_type": 1, "cylinder_insulation_type": 1, "has_fixed_air_conditioning": "false", "cylinder_insulation_thickness": 50}, "sap_version": 9.94, "schema_type": "RdSAP-Schema-20.0.0", "uprn_source": "Energy Assessor", "country_code": "EAW", "main_heating": [{"description": "Electric storage heaters", "energy_efficiency_rating": 3, "environmental_efficiency_rating": 1}], "dwelling_type": "Ground-floor flat", "language_code": 1, "property_type": 2, "address_line_1": "addr-9f72b33fbee5", "address_line_2": "", "address_line_3": "", "assessment_type": "RdSAP", "completion_date": "2024-05-23", "inspection_date": "2024-05-21", "extensions_count": 0, "measurement_type": 1, "sap_flat_details": {"level": 1, "top_storey": "N", "flat_location": 0, "heat_loss_corridor": 2, "unheated_corridor_length": 12.3}, "total_floor_area": 39, "transaction_type": 8, "conservatory_type": 1, "heated_room_count": 2, "registration_date": "2024-05-23", "sap_energy_source": {"mains_gas": "N", "meter_type": 1, "photovoltaic_supply": {"none_or_no_details": {"pv_connection": 0, "percent_roof_area": 0}}, "wind_turbines_count": 0, "wind_turbines_terrain_type": 1}, "secondary_heating": {"description": "Portable electric heaters (assumed)", "energy_efficiency_rating": 0, "environmental_efficiency_rating": 0}, "sap_building_parts": [{"identifier": "Main Dwelling", "wall_dry_lined": "N", "floor_heat_loss": 7, "roof_construction": 3, "wall_construction": 8, "building_part_number": 1, "sap_alternative_wall": {"wall_area": 30.75, "sheltered_wall": "Y", "wall_dry_lined": "N", "wall_construction": 8, "wall_insulation_type": 1, "wall_thickness_measured": "N", "wall_insulation_thickness": "50mm"}, "sap_floor_dimensions": [{"floor": 0, "room_height": {"value": 2.5, "quantity": "metres"}, "floor_insulation": 1, "total_floor_area": {"value": 38.69, "quantity": "square metres"}, "party_wall_length": {"value": 5.3, "quantity": "metres"}, "floor_construction": 1, "heat_loss_perimeter": {"value": 19.9, "quantity": "metres"}}], "wall_insulation_type": 1, "construction_age_band": "F", "party_wall_construction": 0, "wall_thickness_measured": "N", "roof_insulation_location": "ND", "roof_insulation_thickness": "ND", "wall_insulation_thickness": "50mm", "floor_insulation_thickness": "NI"}], "low_energy_lighting": 100, "solar_water_heating": "N", "habitable_room_count": 2, "heating_cost_current": {"value": 565, "currency": "GBP"}, "insulated_door_count": 0, "co2_emissions_current": 2.6, "energy_rating_average": 60, "energy_rating_current": 70, "lighting_cost_current": {"value": 70, "currency": "GBP"}, "main_heating_controls": [{"description": "Automatic charge control", "energy_efficiency_rating": 3, "environmental_efficiency_rating": 3}], "multiple_glazing_type": 2, "open_fireplaces_count": 0, "has_hot_water_cylinder": "true", "heating_cost_potential": {"value": 316, "currency": "GBP"}, "hot_water_cost_current": {"value": 253, "currency": "GBP"}, "mechanical_ventilation": 0, "percent_draughtproofed": 100, "suggested_improvements": [{"sequence": 1, "typical_saving": {"value": 176, "currency": "GBP"}, "indicative_cost": "\u00a34,000 - \u00a36,000", "improvement_type": "W2", "improvement_details": {"improvement_number": 58}, "improvement_category": 5, "energy_performance_rating": 76, "environmental_impact_rating": 62}, {"sequence": 2, "typical_saving": {"value": 74, "currency": "GBP"}, "indicative_cost": "\u00a3800 - \u00a31,200", "improvement_type": "L2", "improvement_details": {"improvement_number": 60}, "improvement_category": 5, "energy_performance_rating": 79, "environmental_impact_rating": 65}], "co2_emissions_potential": 1.9, "energy_rating_potential": 79, "lighting_cost_potential": {"value": 70, "currency": "GBP"}, "schema_version_original": "20.0.0", "alternative_improvements": [{"sequence": 1, "typical_saving": {"value": 114, "currency": "GBP"}, "improvement_type": "J2", "improvement_details": {"improvement_number": 54}, "improvement_category": 6, "energy_performance_rating": 81, "environmental_impact_rating": 96}, {"sequence": 2, "typical_saving": {"value": 107, "currency": "GBP"}, "improvement_type": "Z1", "improvement_details": {"improvement_number": 51}, "improvement_category": 6, "energy_performance_rating": 80, "environmental_impact_rating": 83}], "hot_water_cost_potential": {"value": 253, "currency": "GBP"}, "renewable_heat_incentive": {"water_heating": 1590, "space_heating_existing_dwelling": 3152}, "energy_consumption_current": 391, "has_fixed_air_conditioning": "false", "multiple_glazed_proportion": 100, "calculation_software_version": "4.13r0001", "energy_consumption_potential": 291, "environmental_impact_current": 53, "fixed_lighting_outlets_count": 4, "current_energy_efficiency_band": "C", "environmental_impact_potential": 65, "has_heated_separate_conservatory": "false", "potential_energy_efficiency_band": "C", "co2_emissions_current_per_floor_area": 66, "low_energy_fixed_lighting_outlets_count": 4} |