Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] Diff of /branches/ein16/synth/d2/run.py
ViewVC logotype

Diff of /branches/ein16/synth/d2/run.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 4428, Wed Aug 17 23:24:30 2016 UTC revision 4429, Thu Aug 18 21:01:59 2016 UTC
# Line 13  Line 13 
13  from core import *  from core import *
14  from write import *  from write import *
15  # unu save -f nrrd -e ascii -i out.nrrd | less  # unu save -f nrrd -e ascii -i out.nrrd | less
16  isVis15 = false  isVis15 = true
17  args_types = int(sys.argv[1])  args_types = int(sys.argv[1])
18  layer = int(sys.argv[2])  layer = int(sys.argv[2])
19  args = int(sys.argv[3])  args = int(sys.argv[3])
# Line 27  Line 27 
27  #rtn = []  #rtn = []
28  rst_cnt = 0  rst_cnt = 0
29  rst_total = 0  rst_total = 0
30    rst_total_compile = 0
31    rst_total_terrible = 0
32    rst_total_check= 0
33    rst_total_good =0
34    rst_total_eh= 0
35    
36  rst_good = 0  rst_good = 0
37  rst_eh = 0  rst_eh = 0
38  rst_terrible = 0  rst_terrible = 0
# Line 39  Line 45 
45      runtimepath  = "/Users/chariseechiw/diderot/vis15/bin/diderotc --exec --double "      runtimepath  = "/Users/chariseechiw/diderot/vis15/bin/diderotc --exec --double "
46      branch ="vis15"      branch ="vis15"
47  else:  else:
48      runtimepath  = "/Users/chariseechiw/diderot/ein16/bin/diderotc  --double "      #runtimepath  = "/Users/chariseechiw/diderot/ein16/bin/diderotc  --double "
49        #branch = "ein16"
50        runtimepath  = "/Users/chariseechiw/diderot/branch/ein16-3682/bin/diderotc  --double "
51      branch = "ein16"      branch = "ein16"
52  print "runtimepath ", runtimepath  print "runtimepath ", runtimepath
53    
54    r =runtimepath+" r4428"
55    writeall(r)
56    writesummary(r)
57    write_terrible(r)
58    
59  # unu grid -i inputfile.nrrd | unu save -f text  # unu grid -i inputfile.nrrd | unu save -f text
60  # ^ where all the points are.  # ^ where all the points are.
61    
# Line 70  Line 84 
84      global rst_terrible      global rst_terrible
85      global rst_cnt      global rst_cnt
86      global rst_cumulative      global rst_cumulative
87        global rst_total_check
88        global rst_total_compile
89        global rst_total_eh
90        global rst_total_good
91        global rst_total_terrible
92    
93      x = ("\n\t-"+x+"\n\t-"+rtn_1)      x = ("\n\t-"+x+"\n\t-"+rtn_1)
94      writeall(x)      writeall(x)
95      print (x)      print (x)
96      if (rst_compile_1==1):      if (rst_compile_1==1):
97          rst_compile += 1          rst_compile += 1
98          writeToRst(pre+"c__"+names, observed_data, correct_data, branch, x)          rst_total_compile  += 1
99            #writeToRst(pre+"c__"+names, observed_data, correct_data, branch, x)
100    
101          write_terrible("\n\n***"+pre+"c__"+names)          write_terrible("\n\n***"+pre+"c__"+names)
102          write_terrible("\n\t - did not compile: ")          write_terrible("\n\t - did not compile: ")
# Line 86  Line 107 
107      else:      else:
108          # collect results          # collect results
109          rst_good +=  rst_good_1          rst_good +=  rst_good_1
110            rst_total_good +=  rst_good_1
111          rst_eh += rst_eh_1          rst_eh += rst_eh_1
112            rst_total_eh += rst_eh_1
113          rst_terrible += rst_terrible_1          rst_terrible += rst_terrible_1
114            rst_total_terrible += rst_terrible_1
115          rst_check  += rst_check_1          rst_check  += rst_check_1
116            rst_total_check+=rst_check_1
117          rst_compile += rst_compile_1          rst_compile += rst_compile_1
118          rst_cnt += 1          rst_cnt += 1
119          rst_cumulative +=1          rst_cumulative +=1
# Line 250  Line 275 
275    
276    
277  ##################################################################################################  ##################################################################################################
278    def writeCumulativeS():
279        x= "\n\n # cumulative break down  # "+str(rst_cumulative)
280        x+= " A# "+str(rst_total_good )+" B # "+str(rst_total_eh )+" C# "+str( rst_total_check  )+" D# "+str(rst_total_terrible )+" did not run  # "+str( rst_total_compile)
281        return x
282    
283    
284    def writeCumulative():
285        x=writeCumulativeS()
286        print (x)
287        writeall(x)
288        writesummary(x)
289    
290    
291  def write_results(pre):  def write_results(pre):
292      global rst_compile      global rst_compile
293      global rst_good      global rst_good
# Line 278  Line 316 
316      if(rst_compile>0):      if(rst_compile>0):
317          x+=" did not run :"+str( rst_compile)+"|"+str(rst_total)          x+=" did not run :"+str( rst_compile)+"|"+str(rst_total)
318      x+= " ran: "+str(rst_cnt)+"|" +str(rst_total)+" cumulative: "+str(rst_cumulative)      x+= " ran: "+str(rst_cnt)+"|" +str(rst_total)+" cumulative: "+str(rst_cumulative)
319        #x+=writeCumulativeS()
320      x+="\n***************************************************\n"      x+="\n***************************************************\n"
321      writeall(x)      writeall(x)
322      writesummary(x)      writesummary(x)
323    
 def writeCumulative():  
     x= "\n***************************************************\n #cumulative: "+str(rst_cumulative)  
     print (x)  
     writeall(x)  
     writesummary(x)  
324    
325  def writeResults_inner(opr_inner):  def writeResults_inner(opr_inner):
326      y = Title_inner(opr_inner)      y = Title_inner(opr_inner)

Legend:
Removed from v.4428  
changed lines
  Added in v.4429

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0