From c78ba4616292cfd5a6202c942fd0680475a0c543 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89tienne=20Simon?= Date: Mon, 18 May 2015 19:13:40 -0400 Subject: Round time output when writing csv. --- test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test.py b/test.py index 545d6a0..1a59d49 100755 --- a/test.py +++ b/test.py @@ -45,7 +45,7 @@ if __name__ == "__main__": dest_outcsv.writerow([d['trip_id'][0], destination[0, 0], destination[0, 1]]) if 'duration' in outputs: duration = output_values[outputs.index('duration')] - time_outcsv.writerow([d['trip_id'][0], duration[0]]) + time_outcsv.writerow([d['trip_id'][0], int(round(duration[0]))]) if 'destination' in outputs: dest_outfile.close() -- cgit v1.2.3