Skip to content

Commit 01d47f5

Browse files
authored
Merge pull request #137 from CMAP-REPOS/develop
Minor tweaks
2 parents fa5ec2b + 20c5444 commit 01d47f5

1 file changed

Lines changed: 10 additions & 8 deletions

File tree

MHN.py

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,13 @@ class MasterHighwayNetwork(object):
2222
base_year = 2015 # BASELINK=1 network year, not necessarily scenario 100 (i.e. base_year was recently 2009, while scenario 100 was 2010)
2323

2424
bus_years = {
25-
'base': 2015,
26-
'current': 2016
25+
'base': 2015, # Year that bus_base feature class represents
26+
'current': 2016 # Year that bus_current feature class represents
2727
}
2828

2929
centroid_ranges = {
30-
'CBD': range( 1, 48), # NB. range(i,j) includes i & excludes j
30+
## zones17 (C19Q1 and later)
31+
'CBD': range( 1, 48), # NB. range(i,j) includes i & *excludes* j
3132
'Chicago': range( 1, 718),
3233
'Cook': range( 1, 1733),
3334
'McHenry': range(2584, 2703),
@@ -45,7 +46,7 @@ class MasterHighwayNetwork(object):
4546
}
4647

4748
# ## zones09 (C18Q3 and earlier)
48-
# 'CBD': range( 1, 48), # NB. range(i,j) includes i & excludes j
49+
# 'CBD': range( 1, 48), # NB. range(i,j) includes i & *excludes* j
4950
# 'Chicago': range( 1, 310),
5051
# 'Cook': range( 1, 855),
5152
# 'McHenry': range( 855, 959),
@@ -66,6 +67,7 @@ class MasterHighwayNetwork(object):
6667
max_poe = max(centroid_ranges['POE'])
6768

6869
scenario_years = {
70+
### Current scenario codes (C22Q2 and later)
6971
'100': 2019, # WARNING: commenting-out 100 will adversely affect transit file generation for later scenarios
7072
'200': 2025,
7173
'300': 2030,
@@ -74,7 +76,7 @@ class MasterHighwayNetwork(object):
7476
'600': 2045, # UrbanSim only
7577
'700': 2050
7678

77-
### Old codes (C17Q2-C21Q4)
79+
### Old scenario codes (C17Q2-C21Q4)
7880
# '100': 2015, # WARNING: commenting-out 100 will adversely affect transit file generation for later scenarios
7981
# '200': 2020,
8082
# '300': 2025,
@@ -83,7 +85,7 @@ class MasterHighwayNetwork(object):
8385
# '600': 2040,
8486
# '700': 2050
8587

86-
### Old codes (C17Q1 and earlier):
88+
### Older scenario codes (C17Q1 and earlier):
8789
# '100': 2010, # WARNING: commenting-out 100 will adversely affect transit file generation for later scenarios
8890
# '200': 2015,
8991
# '300': 2020,
@@ -92,8 +94,8 @@ class MasterHighwayNetwork(object):
9294
# '600': 2040
9395
}
9496

95-
min_year = min(year for scen, year in scenario_years.items())
96-
max_year = max(year for scen, year in scenario_years.items())
97+
min_year = min(scenario_years.values())
98+
max_year = max(scenario_years.values())
9799

98100
tod_periods = {
99101
'1': ('8PM-6AM', # 1: overnight

0 commit comments

Comments
 (0)