diff --git a/recommendations/tests/test_data/heating_recommendations_data.py b/recommendations/tests/test_data/heating_recommendations_data.py index 76b8b218..77126c7b 100644 --- a/recommendations/tests/test_data/heating_recommendations_data.py +++ b/recommendations/tests/test_data/heating_recommendations_data.py @@ -1168,6 +1168,55 @@ testing_examples = [ "notes": "This property is a modified version of the previous dual heating property, where we lower the" "starting heating efficiency so that we a combined heating upgrade to both the boiler and the electric" "storage heaters" + }, + { + "epc": { + 'lmk-key': '670443469402019100713595382910638', 'address1': '2 Crabs Castle', 'address2': 'Pontrilas', + 'address3': None, 'postcode': 'HR2 0BN', 'building-reference-number': 6466069868, + 'current-energy-rating': 'G', 'potential-energy-rating': 'C', 'current-energy-efficiency': 20, + 'potential-energy-efficiency': 80, 'property-type': 'House', 'built-form': 'Semi-Detached', + 'inspection-date': '2019-10-07', 'local-authority': 'E06000019', 'constituency': 'E14000743', + 'county': None, + 'lodgement-date': '2019-10-07', 'transaction-type': 'rental (social)', 'environment-impact-current': 1, + 'environment-impact-potential': 103, 'energy-consumption-current': 618, 'energy-consumption-potential': 110, + 'co2-emissions-current': 15.0, 'co2-emiss-curr-per-floor-area': 206, 'co2-emissions-potential': -0.3, + 'lighting-cost-current': 125, 'lighting-cost-potential': 63, 'heating-cost-current': 1371, + 'heating-cost-potential': 473, 'hot-water-cost-current': 524, 'hot-water-cost-potential': 101, + 'total-floor-area': 73.0, 'energy-tariff': 'dual', 'mains-gas-flag': 'N', 'floor-level': 'NODATA!', + 'flat-top-storey': None, 'flat-storey-count': None, 'main-heating-controls': 2601.0, + 'multi-glaze-proportion': 100.0, 'glazed-type': 'double glazing installed during or after 2002', + 'glazed-area': 'Normal', 'extension-count': 1, 'number-habitable-rooms': 4, 'number-heated-rooms': 4, + 'low-energy-lighting': 0, 'number-open-fireplaces': 1, + 'hotwater-description': 'Electric immersion, off-peak', 'hot-water-energy-eff': 'Very Poor', + 'hot-water-env-eff': 'Poor', 'floor-description': 'Solid, no insulation (assumed)', + 'floor-energy-eff': 'NO DATA!', 'windows-description': 'Fully double glazed', 'windows-energy-eff': 'Good', + 'windows-env-eff': 'Good', 'walls-description': 'Cavity wall, as built, no insulation (assumed)', + 'walls-energy-eff': 'Poor', 'walls-env-eff': 'Poor', 'secondheat-description': 'None', + 'roof-description': 'Pitched, 150 mm loft insulation', 'roof-energy-eff': 'Good', 'roof-env-eff': 'Good', + 'mainheat-description': 'Room heaters, anthracite', 'mainheat-energy-eff': 'Very Poor', + 'mainheat-env-eff': 'Very Poor', 'mainheatcont-description': 'No thermostatic control of room temperature', + 'mainheatc-energy-eff': 'Poor', 'mainheatc-env-eff': 'Poor', + 'lighting-description': 'No low energy lighting', 'lighting-energy-eff': 'Very Poor', + 'lighting-env-eff': 'Very Poor', 'main-fuel': 'anthracite', 'wind-turbine-count': 0, + 'heat-loss-corridor': 'NO DATA!', 'unheated-corridor-length': None, 'floor-height': None, + 'photo-supply': None, + 'solar-water-heating-flag': 'N', 'mechanical-ventilation': 'natural', + 'address': '2 Crabs Castle, Pontrilas', 'local-authority-label': 'Herefordshire, County of', + 'constituency-label': 'Hereford and South Herefordshire', 'posttown': 'HEREFORD', + 'construction-age-band': 'England and Wales: 1930-1949', 'lodgement-datetime': '2019-10-07 13:59:53', + 'tenure': 'rental (social)', 'fixed-lighting-outlets-count': None, 'low-energy-fixed-light-count': None, + 'uprn': 10009574286, 'uprn-source': 'Address Matched', 'sheating-energy-eff': None, 'sheating-env-eff': None + }, + "heating_recommendation_descriptions": [ + 'Install an air source heat pump, and upgrade heating controls to Smart Thermostats, room sensors and ' + 'smart radiator valves (time & temperature zone control). The cost includes the £7500 boiler upgrade ' + 'scheme grant', + 'Install high heat retention electric storage heaters. Upgrade heating controls to High Heat Retention ' + 'Storage Heater Controls' + ], + "heating_controls_recommendation_descriptions": [], + "notes": "This property has anthracite heating without mains. " + "We recommend ASHP and HHR, but no gas condensing boiler" } ] @@ -1229,6 +1278,8 @@ completed_descriptions = [ "Room heaters, dual fuel (mineral and wood)", "Air source heat pump, radiators, electric", "Portable electric heaters assumed for most rooms, Room heaters, electric", + "Boiler and radiators, mains gas, Electric storage heaters", + "Room heaters, anthracite", ] portfolio = pd.read_excel( @@ -1243,7 +1294,7 @@ portfolio["lodgement-datetime"] = portfolio["lodgement-datetime"].astype(str) print(portfolio["mainheat-description"].value_counts()) eg = portfolio[ - (portfolio["mainheat-description"] == "Boiler and radiators, mains gas, Electric storage heaters") + (portfolio["mainheat-description"] == "Room heaters, anthracite") ].sample(1) eg = eg.squeeze().to_dict() print(eg)