Skip to content

Commit

Permalink
removing temp truck log
Browse files Browse the repository at this point in the history
  • Loading branch information
bricegnichols committed Aug 14, 2018
1 parent f44d62a commit e0b1714
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions scripts/trucks/truck_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@
from truck_configuration import *
from emme_configuration import *
from input_configuration import *

# Temp log file for de-bugging
logfile = open("outputs/logs/truck_log.txt", 'wb')

def network_importer(EmmeProject):
for scenario in list(EmmeProject.bank.scenarios()):
Expand Down Expand Up @@ -147,7 +144,6 @@ def truck_productions():
#Calculate Productions for 3 truck classes (Origin Matrices are populated)
for key, value in truck_generation_dict['productions'].iteritems():
my_project.matrix_calculator(result = value['results'], expression = value['expression'])
# logfile.write("We're printing the productions part.")

# Apply land use restriction for heavy trucks to zones w/ no industrial parcels
my_project.matrix_calculator(result = 'mohtpro', expression = 'mohtpro * motruck')
Expand All @@ -158,14 +154,11 @@ def truck_attractions():

for key, value in truck_generation_dict['attractions'].iteritems():
my_project.matrix_calculator(result = value['results'], expression = value['expression'])
# logfile.write("We're printing the attractions part.")

# Apply land use restriction for heavy trucks to zones w/ no industrial parcels
my_project.matrix_calculator(result = 'mohtatt', expression = 'mohtatt * motruck')

truck_dest_matrices = ['ltatt', 'mtatt', 'htatt']
# print 'done with truck productions and attractions'
logfile.write('done with truck productions and attractions')

#Transpose Attractions (Destination Matrices are populated)
for item in truck_dest_matrices:
Expand Down

0 comments on commit e0b1714

Please sign in to comment.