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

SCM Repository

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

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

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

revision 4396, Wed Aug 10 13:03:39 2016 UTC revision 4397, Wed Aug 10 15:11:28 2016 UTC
# Line 17  Line 17 
17      rst_check = 0      rst_check = 0
18      rst_terrible= 0      rst_terrible= 0
19      rst_compile = 0      rst_compile = 0
20        if (maxdiff<=0.0001):
21      if (maxdiff<=0.01):          rtn = "Results: "+var+": V-0 A"+s
22            rst_good = 1
23            return (rtn, rst_good, rst_eh, rst_check, rst_terrible, rst_compile)
24        elif (maxdiff<=0.001):
25            if(per>10):
26                rtn = "Results: "+var+": W+3 C"+s
27                rst_check = 1
28                return (rtn, rst_good, rst_eh, rst_check, rst_terrible, rst_compile)
29            elif(per>1):
30                rtn = "Results: "+var+": W-2 B"+s
31                rst_check = 1
32                return (rtn, rst_good, rst_eh, rst_check, rst_terrible, rst_compile)
33            elif(per>0.1):
34                rtn = "Results: "+var+": W-1 A"+s
35                rst_good = 1
36                return (rtn, rst_good, rst_eh, rst_check, rst_terrible, rst_compile)
37            else:
38                rtn = "Results: "+var+": W-0 A"+s
39                rst_good = 1
40                return (rtn, rst_good, rst_eh, rst_check, rst_terrible, rst_compile)
41        elif (maxdiff<=0.01):
42          if(per>10):          if(per>10):
43              rtn = "Results: "+var+": X+3 C"+s              rtn = "Results: "+var+": X+3 C"+s
44              rst_check = 1              rst_check = 1
45              return (rtn, rst_good, rst_eh, rst_check, rst_terrible, rst_compile)              return (rtn, rst_good, rst_eh, rst_check, rst_terrible, rst_compile)
46          elif(per>1):          elif(per>1):
47              rtn = "Results: "+var+": X-2 B"+s              rtn = "Results: "+var+": X-2 B"+s
48              rst_eh = 1              rst_check = 1
49              return (rtn, rst_good, rst_eh, rst_check, rst_terrible, rst_compile)              return (rtn, rst_good, rst_eh, rst_check, rst_terrible, rst_compile)
50          elif(per>0.1):          elif(per>0.1):
51              rtn = "Results: "+var+": X-1 B"+s              rtn = "Results: "+var+": X-1 B"+s

Legend:
Removed from v.4396  
changed lines
  Added in v.4397

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