Ignore:
Timestamp:
07/07/10 12:22:35 (6 years ago)
Author:
mmckerns
Message:

extended Sows/Solvers? to log solver 'rank' (see ticket #94)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/UQ/math/examples2/log_reader.py

    r255 r296  
    99f.close() 
    1010 
    11 contents = file.split("_#_  __ChiSq__  __params__\n") 
     11contents = file.split("___#___  __ChiSq__  __params__\n") 
    1212lines = contents[-1].split('\n') 
    1313 
     
    1616for line in lines[:-1]: 
    1717  values = line.split("   ") 
    18   iter.append(eval(values[0])) 
     18  iter.append(eval(values[0])[0]) #FIXME: we ignore 'id' here 
    1919  cost.append(eval(values[1])) 
    2020  param.append(eval(values[2])) 
     
    3131ax1 = fig.add_subplot(2,1,1) 
    3232for j in range(len(param[0])): 
    33   #ax1.plot(iter,conv[j],label=str(j)) 
    3433  ax1.plot(iter,conv[j],label=str(j),marker='o') 
    3534plt.legend() 
    3635 
    3736ax2 = fig.add_subplot(2,1,2) 
    38 #ax2.plot(iter,cost,label='cost') 
    3937ax2.plot(iter,cost,label='cost',marker='o') 
    4038plt.legend() 
Note: See TracChangeset for help on using the changeset viewer.