Trisurf Monte Carlo simulator
Samo Penic
2016-06-01 f3a6c1779ed6eea30da3c120c05153e9494f6715
commit | author | age
67749c 1 from trisurf import trisurf
SP 2 import os
3
4 def combine(Runs):
5     """Runs are those runs of which statistics are to be combined"""
6     data=[]
7     for run in Runs:
8         dir=trisurf.Directory(maindir=run.maindir,simdir=run.subdir)
9         statfile=os.path.join(dir.fullpath(),"statistics.csv")
10         with open (statfile,"r") as myfile:
11             #lines = [line.rstrip('\n') for line in myfile]
12             data=data+myfile.readlines()[1:]
f3a6c1 13
SP 14     with open ("combinedStatistics.csv","w") as output:
15         output.write("Header line placer... Not yet implemented\n")
16         for line in data:
17             output.write(line)
67749c 18
SP 19     
20