From 38bee9baba5ebed2e1906123a326d150b98050e6 Mon Sep 17 00:00:00 2001 From: lain Date: Mon, 16 Jan 2017 16:07:18 -0200 Subject: [PATCH] round instead of ceil --- modules/experiment/experiment.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/experiment/experiment.py b/modules/experiment/experiment.py index 48ff49b..e6381ee 100644 --- a/modules/experiment/experiment.py +++ b/modules/experiment/experiment.py @@ -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 @@ -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):