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 = []
|
||||
scoring_data = []
|
||||
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:
|
||||
continue
|
||||
|
|
@ -1218,10 +1218,7 @@ def get_epc_data(
|
|||
# Loft MUST be suitable
|
||||
cavity_age = None
|
||||
if (
|
||||
eligibility.walls["is_cavity_wall"] and
|
||||
eligibility.walls["is_filled_cavity"] and
|
||||
eligibility.loft["suitability"] and
|
||||
eligibility.eco4_warmfront["message"] == "Failed due to full cavity - check cavity age"
|
||||
identified_for_eco4 and not eligibility.eco4_warmfront["eligible"]
|
||||
):
|
||||
# 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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue