diff options
author | Étienne Simon <esimon@esimon.eu> | 2015-05-18 19:13:40 -0400 |
---|---|---|
committer | Étienne Simon <esimon@esimon.eu> | 2015-05-18 19:13:40 -0400 |
commit | c78ba4616292cfd5a6202c942fd0680475a0c543 (patch) | |
tree | 456c8b6dba06e0f2fcc672ba4f5ede3a01a9eea3 /test.py | |
parent | 4f68132cc9c62860bd3368e559e430961c872636 (diff) | |
download | taxi-c78ba4616292cfd5a6202c942fd0680475a0c543.tar.gz taxi-c78ba4616292cfd5a6202c942fd0680475a0c543.zip |
Round time output when writing csv.
Diffstat (limited to 'test.py')
-rwxr-xr-x | test.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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() |