mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
Adding missing regions
This commit is contained in:
parent
f13ce39bed
commit
cb993024bb
2 changed files with 4 additions and 1 deletions
|
|
@ -620,7 +620,7 @@ async def trigger_plan(body: PlanTriggerRequest):
|
|||
p.set_solar_panel_configuration(unit_solar_panel_configuration)
|
||||
if individual_units:
|
||||
# Model the solar potential at the property level
|
||||
for unit in individual_units:
|
||||
for unit in tqdm(individual_units):
|
||||
property_instance = [p for p in input_properties if p.id == unit["property_id"]][0]
|
||||
# At this level, we check if the property is suitable for solar and if now, skip
|
||||
if not property_instance.is_solar_pv_valid():
|
||||
|
|
|
|||
|
|
@ -161,6 +161,9 @@ county_to_region_map = {
|
|||
|
||||
# Additional mappings requried, based on what we find in the EPC database
|
||||
'Greater London Authority': 'Inner London',
|
||||
'Herefordshire, County of': 'West Midlands',
|
||||
"North Northamptonshire": 'East Midlands',
|
||||
"West Northamptonshire": 'East Midlands',
|
||||
# We have a bunch of inner London local authority mappings, which can be used if the county is not found
|
||||
'Barking and Dagenham': 'Inner London', 'Barnet': 'Inner London', 'Bexley': 'Inner London',
|
||||
'Brent': 'Inner London', 'Bromley': 'Inner London', 'Camden': 'Inner London', 'City of London': 'Inner London',
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue