mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-19 17:03:02 +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
5.2 KiB
JSON
1 line
No EOL
5.2 KiB
JSON
{"uprn": 10093129157, "roofs": [{"description": "(other premises above)", "energy_efficiency_rating": 0, "environmental_efficiency_rating": 0}], "walls": [{"description": "Average thermal transmittance 0.26 W/m\u00b2K", "energy_efficiency_rating": 5, "environmental_efficiency_rating": 5}], "floors": [{"description": "(other premises below)", "energy_efficiency_rating": 0, "environmental_efficiency_rating": 0}], "status": "entered", "tenure": 1, "windows": {"description": "High performance glazing", "energy_efficiency_rating": 5, "environmental_efficiency_rating": 5}, "lighting": {"description": "Low energy lighting in all fixed outlets", "energy_efficiency_rating": 5, "environmental_efficiency_rating": 5}, "postcode": "E15 3FA", "data_type": 5, "hot_water": {"description": "Electric immersion, standard tariff", "energy_efficiency_rating": 1, "environmental_efficiency_rating": 2}, "post_town": "", "created_at": "2016-06-23 09:54:54", "living_area": 20.25, "orientation": 7, "region_code": 17, "report_type": 3, "sap_heating": {"water_fuel_type": 39, "water_heating_code": 903, "hot_water_store_size": 150, "main_heating_details": [{"main_fuel_type": 39, "main_heating_code": 691, "emitter_temperature": "NA", "main_heating_number": 1, "main_heating_control": 2603, "main_heating_category": 10, "main_heating_fraction": 1, "central_heating_pump_age": 0, "main_heating_data_source": 3, "has_separate_delayed_start": "false", "load_or_weather_compensation": 0}], "has_hot_water_cylinder": "true", "has_cylinder_thermostat": "true", "has_fixed_air_conditioning": "false", "secondary_heating_category": 1, "is_cylinder_in_heated_space": "true", "sap_heating_design_water_use": 1, "hot_water_store_insulation_type": 1, "hot_water_store_insulation_thickness": 75}, "sap_version": 9.92, "schema_type": "SAP-Schema-17.0", "uprn_source": "Energy Assessor", "country_code": "ENG", "main_heating": [{"description": "Room heaters, electric", "energy_efficiency_rating": 1, "environmental_efficiency_rating": 2}], "dwelling_type": "Mid-floor flat", "language_code": 1, "property_type": 2, "address_line_1": "addr-7b6e387f0e1d", "address_line_2": "", "assessment_date": "2015-03-09", "assessment_type": "SAP", "completion_date": "2016-06-23", "inspection_date": "2015-03-09", "sap_ventilation": {"psv_count": 0, "pressure_test": 6, "draughtstripping": 3, "open_flues_count": 0, "ventilation_type": 1, "has_draught_lobby": "true", "extract_fans_count": 2, "open_fireplaces_count": 0, "sheltered_sides_count": 2, "flueless_gas_fires_count": 0}, "design_water_use": 1, "sap_data_version": 9.92, "sap_flat_details": {"level": 2}, "total_floor_area": 39, "transaction_type": 5, "conservatory_type": 1, "registration_date": "2016-06-23", "sap_energy_source": {"electricity_tariff": 1, "wind_turbines_count": 0, "wind_turbine_terrain_type": 2, "fixed_lighting_outlets_count": 10, "low_energy_fixed_lighting_outlets_count": 10, "low_energy_fixed_lighting_outlets_percentage": 100}, "sap_opening_types": [{"name": "Windows (1)", "type": 4, "u_value": 1.29, "frame_type": 1, "data_source": 2, "description": "Data from Manufacturer", "frame_factor": 0.7, "glazing_type": 6, "solar_transmittance": 0.76}], "secondary_heating": {"description": "None", "energy_efficiency_rating": 0, "environmental_efficiency_rating": 0}, "sap_building_parts": [{"sap_roofs": [{"name": "Exposed Roof", "u_value": 0, "roof_type": 2, "kappa_value": 0, "total_roof_area": 0}], "sap_walls": [{"name": "Existing Wall", "u_value": 0.26, "wall_type": 2, "kappa_value": 17, "total_wall_area": 42.9, "is_curtain_walling": "false"}, {"name": "Party Wall", "u_value": 0, "wall_type": 4, "kappa_value": 20, "total_wall_area": 41.25}], "identifier": "Main Dwelling", "overshading": 2, "sap_openings": [{"name": 1, "type": "Windows (1)", "width": 0, "height": 0, "location": "Existing Wall", "orientation": 7}], "construction_year": 2016, "sap_thermal_bridges": {"thermal_bridge_code": 1}, "building_part_number": 1}], "heating_cost_current": {"value": 172, "currency": "GBP"}, "co2_emissions_current": 1.4, "energy_rating_average": 60, "energy_rating_current": 70, "lighting_cost_current": {"value": 28, "currency": "GBP"}, "main_heating_controls": [{"description": "Programmer and appliance thermostats", "energy_efficiency_rating": 4, "environmental_efficiency_rating": 4}], "has_hot_water_cylinder": "true", "heating_cost_potential": {"value": 172, "currency": "GBP"}, "hot_water_cost_current": {"value": 217, "currency": "GBP"}, "co2_emissions_potential": 1.4, "energy_rating_potential": 70, "lighting_cost_potential": {"value": 28, "currency": "GBP"}, "schema_version_original": "LIG-17.0", "hot_water_cost_potential": {"value": 217, "currency": "GBP"}, "is_in_smoke_control_area": "unknown", "renewable_heat_incentive": {"rhi_existing_dwelling": {"water_heating": 1415, "space_heating_existing_dwelling": 1124}}, "seller_commission_report": "Y", "energy_consumption_current": 217, "has_fixed_air_conditioning": "false", "multiple_glazed_percentage": 100, "calculation_software_version": "Version: 1.0.3.4", "energy_consumption_potential": 217, "environmental_impact_current": 73, "current_energy_efficiency_band": "C", "environmental_impact_potential": 73, "has_heated_separate_conservatory": "false", "potential_energy_efficiency_band": "C", "co2_emissions_current_per_floor_area": 37} |