Skip to content

Commit

Permalink
Use area_aggregation with zone areas
Browse files Browse the repository at this point in the history
* Loop over param.zone.area_aggregation so that area definition is unambiguous
  • Loading branch information
Supponen committed Apr 19, 2021
1 parent 3aa1bd3 commit 46a0550
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Scripts/datatypes/zone.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from parameters.zone import areas, municipalities
from parameters.zone import areas, area_aggregation, municipalities
from utils.zone_interval import is_in


Expand All @@ -10,7 +10,7 @@ def __init__(self, number):
self.index = Zone.counter
Zone.counter += 1
self.area = None
for area in areas:
for area in area_aggregation:
if is_in(areas[area], number):
self.area = area
break
Expand Down

0 comments on commit 46a0550

Please sign in to comment.