From f3a6c1779ed6eea30da3c120c05153e9494f6715 Mon Sep 17 00:00:00 2001 From: Samo Penic <samo.penic@gmail.com> Date: Wed, 01 Jun 2016 19:43:27 +0000 Subject: [PATCH] combined statistics output to file --- python/trisurf/statistics.py | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/python/trisurf/statistics.py b/python/trisurf/statistics.py index 9b3d454..5b6d3ff 100644 --- a/python/trisurf/statistics.py +++ b/python/trisurf/statistics.py @@ -10,10 +10,11 @@ with open (statfile,"r") as myfile: #lines = [line.rstrip('\n') for line in myfile] data=data+myfile.readlines()[1:] - - print("Header line placer... Not yet implemented") - for line in data: - print(line.replace('\n','')) + + with open ("combinedStatistics.csv","w") as output: + output.write("Header line placer... Not yet implemented\n") + for line in data: + output.write(line) -- Gitblit v1.9.3