MCPcopy Create free account
hub / github.com/aff3ct/aff3ct / get_output_structures

Function get_output_structures

scripts/debug_parser/aff3ct_debug_parser.py:272–295  ·  view source on GitHub ↗
(lines, key)

Source from the content-addressed store, hash-verified

270
271
272def get_output_structures(lines, key):
273 tsk_ios = get_task_ios(lines, key)
274 if not tsk_ios:
275 print(key + " not found")
276 exit(1)
277 inter_frame = 1
278 out_structures = []
279 for i in range(0, len(tsk_ios)):
280 out_structures.append(OutputStructure())
281 out_structures[i].index = i
282 tsk_arg = tsk_ios[i]
283 tsk_arg = tsk_arg.split(" ")
284 out_structures[i].data_format = tsk_arg[0]
285 tsk_arg = tsk_arg[1].replace("]", "")
286 tsk_arg = tsk_arg.split("[")
287 out_structures[i].name = tsk_arg[0]
288 if "x" in tsk_arg[1]:
289 tsk_arg = tsk_arg[1].split("x")
290 inter_frame = int(tsk_arg[0])
291 out_structures[i].frame_length = int(tsk_arg[1])
292 else:
293 inter_frame = 1
294 out_structures[i].frame_length = int(tsk_arg[1])
295 return out_structures, inter_frame
296
297
298def main():

Callers 1

mainFunction · 0.85

Calls 3

get_task_iosFunction · 0.85
OutputStructureClass · 0.85
splitMethod · 0.45

Tested by

no test coverage detected