mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-18 20:11:20 +00:00
doc: Tidy up method map generation
Remove unsed variables and methods from the instrument method map generation.
This commit is contained in:
parent
c7af8f497f
commit
7313c82499
@ -22,18 +22,9 @@ from wa.framework.instrument import SIGNAL_MAP
|
||||
from wa.framework.signal import CallbackPriority
|
||||
from wa.utils.doc import format_simple_table
|
||||
|
||||
|
||||
CONVINIENCE_ALIASES = ['initialize', 'setup', 'start', 'stop', 'process_workload_result',
|
||||
'update_result', 'teardown', 'finalize']
|
||||
|
||||
OUTPUT_TEMPLATE_FILE = os.path.join(os.path.dirname(__file__), 'source', 'instrument_method_map.template')
|
||||
|
||||
|
||||
def escape_trailing_underscore(value):
|
||||
if value.endswith('_'):
|
||||
return value[:-1] + '\_'
|
||||
|
||||
|
||||
def generate_instrument_method_map(outfile):
|
||||
signal_table = format_simple_table([(k, v) for k, v in SIGNAL_MAP.iteritems()],
|
||||
headers=['method name', 'signal'], align='<<')
|
||||
|
Loading…
x
Reference in New Issue
Block a user