1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-01-18 12:06:08 +00:00

wa: pep8 fixes

This commit is contained in:
Marc Bonnici 2018-07-04 17:44:55 +01:00
parent 4b86fa5aee
commit 925bc8b719
36 changed files with 88 additions and 86 deletions

View File

@ -46,6 +46,7 @@ class ListCommand(Command):
Only list results that are supported by the
specified platform.
''')
# pylint: disable=superfluous-parens
def execute(self, state, args):
filters = {}

View File

@ -18,7 +18,7 @@ import re
import logging
from builtins import zip #pyline disable=redefined-builtin
from builtins import zip # pylint: disable=redefined-builtin
from future.moves.itertools import zip_longest
from wa.utils.misc import diff_tokens, write_table
@ -26,6 +26,7 @@ from wa.utils.misc import ensure_file_directory_exists as _f
logger = logging.getLogger('diff')
def diff_interrupt_files(before, after, result): # pylint: disable=R0914
output_lines = []
with open(before) as bfh:

View File

@ -49,6 +49,7 @@ _indent_width = 4
_console_handler = None
_init_handler = None
# pylint: disable=global-statement
def init(verbosity=logging.INFO, color=True, indent_with=4,
regular_fmt='%(levelname)-8s %(message)s',

View File

@ -418,6 +418,7 @@ def categorize(v):
else:
return 'c'
# pylint: disable=too-many-return-statements,too-many-branches
def merge_config_values(base, other):
"""

View File

@ -294,30 +294,28 @@ class GBScoreCalculator(object):
# pylint: disable=C0326
workloads = [
# ID Name Power Mac ST Power Mac MT
GBWorkload(101, 'Blowfish', 43971, 40979),
GBWorkload(102, 'Text Compress', 3202, 3280),
GBWorkload(103, 'Text Decompress', 4112, 3986),
GBWorkload(104, 'Image Compress', 8272, 8412),
GBWorkload(105, 'Image Decompress', 16800, 16330),
GBWorkload(107, 'Lua', 385, 385),
GBWorkload(101, 'Blowfish', 43971, 40979), # NOQA
GBWorkload(102, 'Text Compress', 3202, 3280), # NOQA
GBWorkload(103, 'Text Decompress', 4112, 3986), # NOQA
GBWorkload(104, 'Image Compress', 8272, 8412), # NOQA
GBWorkload(105, 'Image Decompress', 16800, 16330), # NOQA
GBWorkload(107, 'Lua', 385, 385), # NOQA
GBWorkload(201, 'Mandelbrot', 665589, 653746),
GBWorkload(202, 'Dot Product', 481449, 455422),
GBWorkload(203, 'LU Decomposition', 889933, 877657),
GBWorkload(204, 'Primality Test', 149394, 185502),
GBWorkload(205, 'Sharpen Image', 2340, 2304),
GBWorkload(206, 'Blur Image', 791, 787),
GBWorkload(201, 'Mandelbrot', 665589, 653746), # NOQA),
GBWorkload(202, 'Dot Product', 481449, 455422), # NOQA,
GBWorkload(203, 'LU Decomposition', 889933, 877657), # NOQA
GBWorkload(204, 'Primality Test', 149394, 185502), # NOQA
GBWorkload(205, 'Sharpen Image', 2340, 2304), # NOQA
GBWorkload(206, 'Blur Image', 791, 787), # NOQA
GBWorkload(302, 'Read Sequential', 1226708, None),
GBWorkload(304, 'Write Sequential', 683782, None),
GBWorkload(306, 'Stdlib Allocate', 3739, None),
GBWorkload(307, 'Stdlib Write', 2070681, None),
GBWorkload(308, 'Stdlib Copy', 1030360, None),
GBWorkload(401, 'Stream Copy', 1367892, None),
GBWorkload(402, 'Stream Scale', 1296053, None),
GBWorkload(403, 'Stream Add', 1507115, None),
GBWorkload(404, 'Stream Triad', 1384526, None),
GBWorkload(302, 'Read Sequential', 1226708, None), # NOQA
GBWorkload(304, 'Write Sequential', 683782, None), # NOQA
GBWorkload(306, 'Stdlib Allocate', 3739, None), # NOQA
GBWorkload(307, 'Stdlib Write', 2070681, None), # NOQA
GBWorkload(401, 'Stream Copy', 1367892, None), # NOQA
GBWorkload(402, 'Stream Scale', 1296053, None), # NOQA
GBWorkload(403, 'Stream Add', 1507115, None), # NOQA
GBWorkload(404, 'Stream Triad', 1384526, None), # NOQA
]
def __init__(self):