mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-02-21 12:28:44 +00:00
framework/config: Whitespace
This commit is contained in:
parent
81d4587da3
commit
664f0a8905
@ -30,10 +30,10 @@ class CombinedConfig(object):
|
|||||||
|
|
||||||
class ConfigManager(object):
|
class ConfigManager(object):
|
||||||
"""
|
"""
|
||||||
Represents run-time state of WA. Mostly used as a container for loaded
|
Represents run-time state of WA. Mostly used as a container for loaded
|
||||||
configuration and discovered plugins.
|
configuration and discovered plugins.
|
||||||
|
|
||||||
This exists outside of any command or run and is associated with the running
|
This exists outside of any command or run and is associated with the running
|
||||||
instance of wA itself.
|
instance of wA itself.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
@ -87,7 +87,7 @@ class ConfigManager(object):
|
|||||||
instruments = []
|
instruments = []
|
||||||
for name in self.enabled_instruments:
|
for name in self.enabled_instruments:
|
||||||
try:
|
try:
|
||||||
instruments.append(self.get_plugin(name, kind='instrument',
|
instruments.append(self.get_plugin(name, kind='instrument',
|
||||||
target=target))
|
target=target))
|
||||||
except NotFoundError:
|
except NotFoundError:
|
||||||
msg = 'Instrument "{}" not found'
|
msg = 'Instrument "{}" not found'
|
||||||
@ -134,7 +134,7 @@ def permute_by_job(specs):
|
|||||||
for spec in specs:
|
for spec in specs:
|
||||||
for i in range(1, spec.iterations + 1):
|
for i in range(1, spec.iterations + 1):
|
||||||
yield (spec, i)
|
yield (spec, i)
|
||||||
|
|
||||||
|
|
||||||
def permute_by_iteration(specs):
|
def permute_by_iteration(specs):
|
||||||
"""
|
"""
|
||||||
@ -156,7 +156,7 @@ def permute_by_iteration(specs):
|
|||||||
|
|
||||||
all_tuples = []
|
all_tuples = []
|
||||||
for spec in chain(*groups):
|
for spec in chain(*groups):
|
||||||
all_tuples.append([(spec, i + 1)
|
all_tuples.append([(spec, i + 1)
|
||||||
for i in xrange(spec.iterations)])
|
for i in xrange(spec.iterations)])
|
||||||
for t in chain(*map(list, izip_longest(*all_tuples))):
|
for t in chain(*map(list, izip_longest(*all_tuples))):
|
||||||
if t is not None:
|
if t is not None:
|
||||||
@ -182,12 +182,12 @@ def permute_by_section(specs):
|
|||||||
|
|
||||||
all_tuples = []
|
all_tuples = []
|
||||||
for spec in chain(*groups):
|
for spec in chain(*groups):
|
||||||
all_tuples.append([(spec, i + 1)
|
all_tuples.append([(spec, i + 1)
|
||||||
for i in xrange(spec.iterations)])
|
for i in xrange(spec.iterations)])
|
||||||
for t in chain(*map(list, izip_longest(*all_tuples))):
|
for t in chain(*map(list, izip_longest(*all_tuples))):
|
||||||
if t is not None:
|
if t is not None:
|
||||||
yield t
|
yield t
|
||||||
|
|
||||||
|
|
||||||
def permute_randomly(specs):
|
def permute_randomly(specs):
|
||||||
"""
|
"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user