Skip to content

Commit

Permalink
round instead of ceil
Browse files Browse the repository at this point in the history
  • Loading branch information
azhow committed Jan 16, 2017
1 parent 7fb71ae commit 38bee9b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions modules/experiment/experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import os
from time import localtime
import string
import math
#Third-party module
from py_expression_eval import Parser
#Local modules
Expand Down Expand Up @@ -140,7 +139,7 @@ def init_network_data(self, k, network_file, group_size, flow, print_edges):
#instance
self.drivers = []
for od_pair in self.ODlist:
for i in range(int(math.ceil(od_pair.numTravels))):
for i in range(int(round(od_pair.numTravels))):
self.drivers.append(Driver(od_pair))

def __repr__(self):
Expand Down

0 comments on commit 38bee9b

Please sign in to comment.