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 KiB
JSON
1 line
No EOL
6 KiB
JSON
{"uprn": 10023041043, "roofs": [{"description": "Pitched, no insulation", "energy_efficiency_rating": 1, "environmental_efficiency_rating": 1}, {"description": "Roof room(s), no insulation (assumed)", "energy_efficiency_rating": 1, "environmental_efficiency_rating": 1}], "walls": [{"description": "Solid brick, as built, no insulation (assumed)", "energy_efficiency_rating": 2, "environmental_efficiency_rating": 2}], "floors": [{"description": "(other premises below)", "energy_efficiency_rating": 0, "environmental_efficiency_rating": 0}], "status": "entered", "tenure": 1, "windows": [{"description": "Fully double glazed", "energy_efficiency_rating": 3, "environmental_efficiency_rating": 3}], "lighting": {"description": "Low energy lighting in 75% of fixed outlets", "energy_efficiency_rating": 5, "environmental_efficiency_rating": 5}, "postcode": "CV1 5QJ", "hot_water": {"description": "From main system", "energy_efficiency_rating": 4, "environmental_efficiency_rating": 4}, "post_town": "", "built_form": 4, "created_at": "2013-02-25 19:32:18.000000", "door_count": 1, "glazed_area": 1, "region_code": 6, "report_type": 2, "sap_heating": {"wwhrs": {"rooms_with_bath_and_or_shower": 2, "rooms_with_mixer_shower_no_bath": 1, "rooms_with_bath_and_mixer_shower": 1}, "cylinder_size": 1, "water_heating_code": 901, "water_heating_fuel": 26, "main_heating_details": [{"has_fghrs": "N", "main_fuel_type": 26, "boiler_flue_type": 2, "heat_emitter_type": 1, "boiler_index_number": 10126, "main_heating_number": 1, "main_heating_control": 2104, "main_heating_category": 2, "main_heating_fraction": 1, "main_heating_data_source": 1}], "has_fixed_air_conditioning": "false"}, "sap_version": 9.91, "schema_type": "SAP-Schema-16.2", "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": "Top-floor flat", "language_code": 1, "property_type": 2, "address_line_1": "addr-aabfa9ca8950", "schema_version": "LIG-16.1", "assessment_type": "RdSAP", "completion_date": "2013-02-25", "inspection_date": "2013-02-25", "windows_u_value": 3.1, "extensions_count": 0, "measurement_type": 1, "sap_flat_details": {"level": 3, "top_storey": "Y", "flat_location": 1, "heat_loss_corridor": 0}, "total_floor_area": 94, "transaction_type": 8, "conservatory_type": 1, "heated_room_count": 4, "registration_date": "2013-02-25", "restricted_access": 0, "sap_energy_source": {"main_gas": "Y", "meter_type": 3, "photovoltaic_supply": {"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": "Y", "wall_thickness": 300, "floor_heat_loss": 3, "sap_room_in_roof": {"floor_area": 20.81, "insulation": 0, "roof_room_connected": "N", "construction_age_band": "A"}, "roof_construction": 5, "wall_construction": 3, "building_part_number": 1, "sap_floor_dimensions": [{"floor": 0, "room_height": 2.76, "floor_insulation": 0, "total_floor_area": 36.61, "floor_construction": 0, "heat_loss_perimeter": 10.46}, {"floor": 1, "room_height": 2.48, "total_floor_area": 36.61, "heat_loss_perimeter": 17.46}], "wall_insulation_type": 4, "construction_age_band": "A", "wall_thickness_measured": "Y", "roof_insulation_location": 5, "roof_insulation_thickness": "NI"}], "low_energy_lighting": 75, "solar_transmittance": 0.76, "solar_water_heating": "N", "windows_data_source": 2, "bedf_revision_number": 326, "habitable_room_count": 4, "heating_cost_current": {"value": 844, "currency": "GBP"}, "insulated_door_count": 0, "co2_emissions_current": 4.9, "energy_rating_average": 60, "energy_rating_current": 57, "lighting_cost_current": {"value": 69, "currency": "GBP"}, "main_heating_controls": [{"description": "Programmer and room thermostat", "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": 701, "currency": "GBP"}, "hot_water_cost_current": {"value": 92, "currency": "GBP"}, "mechanical_ventilation": 0, "percent_draughtproofed": 100, "suggested_improvements": [{"sequence": 1, "typical_saving": {"value": 114.46967742651, "currency": "GBP"}, "indicative_cost": "\u00a34,000 - \u00a314,000", "improvement_type": "Q", "improvement_details": {"improvement_number": 7}, "improvement_category": 5, "energy_performance_rating": 62, "environmental_impact_rating": 58}, {"sequence": 2, "typical_saving": {"value": 11.8685139099777, "currency": "GBP"}, "indicative_cost": "\u00a315", "improvement_type": "E", "improvement_details": {"improvement_number": 35}, "improvement_category": 5, "energy_performance_rating": 62, "environmental_impact_rating": 59}, {"sequence": 3, "typical_saving": {"value": 31.0103752287298, "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}], "co2_emissions_potential": 4.0, "energy_rating_potential": 64, "lighting_cost_potential": {"value": 55, "currency": "GBP"}, "hot_water_cost_potential": {"value": 92, "currency": "GBP"}, "renewable_heat_incentive": {"water_heating": 2213, "impact_of_loft_insulation": -1222, "impact_of_solid_wall_insulation": -3026, "space_heating_existing_dwelling": 17592}, "seller_commission_report": "Y", "energy_consumption_current": 269, "has_fixed_air_conditioning": "false", "multiple_glazed_proportion": 100, "calculation_software_version": "1.4.0.0", "energy_consumption_potential": 221, "environmental_impact_current": 52, "fixed_lighting_outlets_count": 12, "current_energy_efficiency_band": "D", "environmental_impact_potential": 60, "has_heated_separate_conservatory": "false", "potential_energy_efficiency_band": "D", "co2_emissions_current_per_floor_area": 52, "low_energy_fixed_lighting_outlets_count": 9} |