Trisurf Monte Carlo simulator
Samo Penic
2016-06-01 67749cb5e94a7d28a449a8346b8b3efad786e765
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:]
13     
14     print("Header line placer... Not yet implemented")
15     for line in data:
16         print(line.replace('\n',''))
17
18     
19