mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
handle smokeless coal boiler
This commit is contained in:
parent
0988fb7d6d
commit
b26071e8fc
2 changed files with 10 additions and 2 deletions
|
|
@ -384,12 +384,13 @@ class Funding:
|
|||
|
||||
if mainheating["has_boiler"] and (
|
||||
main_fuel["fuel_type"] in [
|
||||
"dual fuel appliance mineral and wood", "manufactured smokeless fuel", "dual fuel mineral wood"
|
||||
"dual fuel appliance mineral and wood", "manufactured smokeless fuel", "dual fuel mineral wood",
|
||||
"smokeless coal"
|
||||
]
|
||||
) and (mainheat_energy_eff in ["Average", "Very Poor", "Poor"]):
|
||||
return 'Solid Fossil Boiler'
|
||||
|
||||
if mainheating["has_ground_source_heat_pump"]:
|
||||
if mainheating["has_ground_source_heat_pump"] or mainheating["has_water_source_heat_pump"]:
|
||||
return 'GSHP'
|
||||
|
||||
if mainheating["has_boiler"] and (main_fuel["fuel_type"] in ["electric", "electricity"]):
|
||||
|
|
|
|||
|
|
@ -1075,3 +1075,10 @@ for _, x in tqdm(epc_df.iterrows(), total=len(epc_df)):
|
|||
errors.append(x["LMK_KEY"])
|
||||
|
||||
errored_epcs = epc_df[epc_df["LMK_KEY"].isin(errors)]
|
||||
unique_combs = errored_epcs[["MAINHEAT_ENERGY_EFF", "MAINHEAT_DESCRIPTION", "MAIN_FUEL"]].drop_duplicates()
|
||||
i = 0
|
||||
x = errored_epcs[
|
||||
(errored_epcs["MAINHEAT_ENERGY_EFF"] == unique_combs["MAINHEAT_ENERGY_EFF"].values[i]) &
|
||||
(errored_epcs["MAINHEAT_DESCRIPTION"] == unique_combs["MAINHEAT_DESCRIPTION"].values[i]) &
|
||||
(errored_epcs["MAIN_FUEL"] == unique_combs["MAIN_FUEL"].values[i])
|
||||
].head(1).squeeze()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue