mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
fixing eligibility
This commit is contained in:
parent
f4d27aa68d
commit
97ce8dc32e
1 changed files with 2 additions and 5 deletions
|
|
@ -1114,7 +1114,7 @@ def get_epc_data(
|
||||||
results = []
|
results = []
|
||||||
scoring_data = []
|
scoring_data = []
|
||||||
nodata = []
|
nodata = []
|
||||||
for index, property_meta in tqdm(eco4.iterrows(), total=len(eco4)):
|
for index, property_meta in tqdm(asset_list.iterrows(), total=len(asset_list)):
|
||||||
|
|
||||||
if property_meta["matching_postcode"] is None:
|
if property_meta["matching_postcode"] is None:
|
||||||
continue
|
continue
|
||||||
|
|
@ -1218,10 +1218,7 @@ def get_epc_data(
|
||||||
# Loft MUST be suitable
|
# Loft MUST be suitable
|
||||||
cavity_age = None
|
cavity_age = None
|
||||||
if (
|
if (
|
||||||
eligibility.walls["is_cavity_wall"] and
|
identified_for_eco4 and not eligibility.eco4_warmfront["eligible"]
|
||||||
eligibility.walls["is_filled_cavity"] and
|
|
||||||
eligibility.loft["suitability"] and
|
|
||||||
eligibility.eco4_warmfront["message"] == "Failed due to full cavity - check cavity age"
|
|
||||||
):
|
):
|
||||||
# We check the age of the cavity and if it's particularly old, we flag it
|
# We check the age of the cavity and if it's particularly old, we flag it
|
||||||
cavity_age = calculate_cavity_age(newest_epc, older_epcs, cleaned)
|
cavity_age = calculate_cavity_age(newest_epc, older_epcs, cleaned)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue