Subversion Repositories SmartDukaan

Rev

Rev 4036 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4036 Rev 5173
Line 38... Line 38...
38
                        resolution_score = 7.5
38
                        resolution_score = 7.5
39
                    elif resolution == 'WXGA: 1366x768':
39
                    elif resolution == 'WXGA: 1366x768':
40
                        resolution_score = 9.0
40
                        resolution_score = 9.0
41
                    else:
41
                    else:
42
                        resolution_score = 10.0
42
                        resolution_score = 10.0
-
 
43
                displayType_score = 0.0        
-
 
44
                if features.has_key('Display resolution'):
-
 
45
                    displayType = str(features.get('Display type')[0])
-
 
46
                    if displayType=='TFT LCD' or displayType =='LED':
-
 
47
                        displayType_score = 7.0 
-
 
48
                    elif displayType =='HD LED':
-
 
49
                        displayType_score = 8.0
-
 
50
                    elif displayType =='WLED':
-
 
51
                        displayType_score = 8.5
-
 
52
                    elif displayType =='OLED':
-
 
53
                        displayType_score = 9.0
-
 
54
                    elif displayType =='HD WLED':
-
 
55
                        displayType_score = 10.0
43
 
56
 
44
        #TODO: Acquire list of GPUs and Display Types
57
        #TODO: Acquire list of GPUs and Display Types
-
 
58
        
45
        score = (70.0 * screen_size_score + 30.0 * resolution_score) / 100.0
59
        score = (40.0 * screen_size_score + 20.0 * resolution_score + 40.0*displayType_score) / 100.0
46
    return score
60
    return score
47
 
61
 
48
 
62
 
49
print "expSlide=" + `expSlide`
63
print "expSlide=" + `expSlide`
50
 
64