* eda n eda_sa: bug fixed, while we were using -h the result folder was removed

This commit is contained in:
Caner Candan 2010-09-22 19:25:37 +02:00
commit b1798ad351
6 changed files with 175 additions and 76 deletions

View file

@ -3,6 +3,7 @@ PROJECT(common)
SET(RESOURCES
gplot.py
ggobi.py
boxplot_eda_n_edasa.py
)
FOREACH(file ${RESOURCES})

View file

@ -0,0 +1,36 @@
#!/usr/bin/env python
from pylab import *
#from pprint import pprint
FILE_LOCATIONS = 'EDA_ResPop/list_of_files.txt'
data = []
locations = [ line.split()[0] for line in open( FILE_LOCATIONS ) ]
#pprint( locations )
for cur_file in locations:
fitnesses = [ float(line.split()[0]) for line in open( cur_file ).readlines()[1:-1] ]
data.append( fitnesses[1:] )
#pprint( data )
boxplot( data )
# FILE_LOCATIONS = 'EDASA_ResPop/list_of_files.txt'
# data = []
# locations = [ line.split()[0] for line in open( FILE_LOCATIONS ) ]
# #pprint( locations )
# for cur_file in locations:
# fitnesses = [ float(line.split()[0]) for line in open( cur_file ).readlines()[1:-1] ]
# data.append( fitnesses[1:] )
# #pprint( data )
# boxplot( data )
show()