@@ -391,6 +391,7 @@ def _filter(vals, value=None):
391391 return filters .mean (_filter (vals , "Geometric Mean" ))
392392
393393 if testname .startswith ("raptor-assorted-dom" ):
394+ # pylint: disable=W1633
394395 return round (filters .geometric_mean (_filter (vals )), 2 )
395396
396397 if testname .startswith ("raptor-wasm-misc" ):
@@ -402,6 +403,7 @@ def _filter(vals, value=None):
402403 return filters .mean (_filter (vals , "first-interactive" ))
403404
404405 if testname .startswith ("raptor-youtube-playback" ):
406+ # pylint: disable=W1633
405407 return round (filters .mean (_filter (vals )), 2 )
406408
407409 if testname .startswith ("supporting_data" ):
@@ -431,8 +433,10 @@ def _filter(vals, value=None):
431433 raise NotImplementedError ("Unit %s not suported" % unit )
432434
433435 if len (vals ) > 1 :
436+ # pylint: disable=W1633
434437 return round (filters .geometric_mean (_filter (vals )), 2 )
435438
439+ # pylint: disable=W1633
436440 return round (filters .mean (_filter (vals )), 2 )
437441
438442 def parseSpeedometerOutput (self , test ):
@@ -467,6 +471,7 @@ def parseSpeedometerOutput(self, test):
467471 "name" : sub ,
468472 "replicates" : [],
469473 }
474+ # pylint: disable=W1633
470475 _subtests [sub ]["replicates" ].extend ([round (x , 3 ) for x in replicates ])
471476
472477 vals = []
@@ -574,7 +579,10 @@ def parseAresSixOutput(self, test):
574579 "name" : sub ,
575580 "replicates" : [],
576581 }
577- _subtests [sub ]["replicates" ].extend ([round (x , 3 ) for x in replicates ])
582+ # pylint: disable=W1633
583+ _subtests [sub ]["replicates" ].extend (
584+ [float (round (x , 3 )) for x in replicates ]
585+ )
578586
579587 vals = []
580588 for name , test in _subtests .items ():
@@ -680,8 +688,9 @@ def create_subtest_entry(
680688 names = list (_subtests )
681689 names .sort (reverse = True )
682690 for name in names :
691+ # pylint: disable=W1633
683692 _subtests [name ]["value" ] = round (
684- filters .median (_subtests [name ]["replicates" ]), 2
693+ float ( filters .median (_subtests [name ]["replicates" ]) ), 2
685694 )
686695 subtests .append (_subtests [name ])
687696 # only include dropped_frames values, without the %_dropped_frames values
@@ -1051,7 +1060,10 @@ def parseJetstreamTwoOutput(self, test):
10511060 "name" : sub ,
10521061 "replicates" : [],
10531062 }
1054- _subtests [sub ]["replicates" ].extend ([round (x , 3 ) for x in replicates ])
1063+ # pylint: disable=W1633
1064+ _subtests [sub ]["replicates" ].extend (
1065+ [float (round (x , 3 )) for x in replicates ]
1066+ )
10551067
10561068 vals = []
10571069 subtests = []
@@ -1180,7 +1192,10 @@ def parseWebaudioOutput(self, test):
11801192 "name" : sub ,
11811193 "replicates" : [],
11821194 }
1183- _subtests [sub ]["replicates" ].extend ([round (x , 3 ) for x in replicates ])
1195+ # pylint: disable=W1633
1196+ _subtests [sub ]["replicates" ].extend (
1197+ [float (round (x , 3 )) for x in replicates ]
1198+ )
11841199
11851200 vals = []
11861201 subtests = []
@@ -1227,6 +1242,7 @@ def parseMotionmarkOutput(self, test):
12271242 suite = list (page_cycle_results )[0 ]
12281243 for sub in page_cycle_results [suite ].keys ():
12291244 try :
1245+ # pylint: disable=W1633
12301246 replicate = round (
12311247 float (page_cycle_results [suite ][sub ]["frameLength" ]["average" ]),
12321248 3 ,
@@ -1273,7 +1289,10 @@ def parseSunspiderOutput(self, test):
12731289 "name" : sub ,
12741290 "replicates" : [],
12751291 }
1276- _subtests [sub ]["replicates" ].extend ([round (x , 3 ) for x in replicates ])
1292+ # pylint: disable=W1633
1293+ _subtests [sub ]["replicates" ].extend (
1294+ [float (round (x , 3 )) for x in replicates ]
1295+ )
12771296
12781297 subtests = []
12791298 vals = []
@@ -1323,8 +1342,9 @@ def parseAssortedDomOutput(self, test):
13231342 names = list (_subtests )
13241343 names .sort (reverse = True )
13251344 for name in names :
1326- _subtests [name ]["value" ] = round (
1327- filters .median (_subtests [name ]["replicates" ]), 2
1345+ # pylint: disable=W1633
1346+ _subtests [name ]["value" ] = float (
1347+ round (filters .median (_subtests [name ]["replicates" ]), 2 )
13281348 )
13291349 subtests .append (_subtests [name ])
13301350 # only use the 'total's to compute the overall result
0 commit comments