MCPcopy Create free account
hub / github.com/FlightGear/flightgear / show_values

Function show_values

scripts/python/recordreplay.py:550–565  ·  view source on GitHub ↗
(paths)

Source from the content-addressed store, hash-verified

548 errors.append('1')
549
550 def show_values(paths):
551 if isinstance(paths, str):
552 paths = paths,
553 log(f'Values in {paths}:')
554 line2values = dict()
555 for i, path in enumerate(paths):
556 line = 0
557 for item in fg.fg.ls(path):
558 if item.name == 'value':
559 line2values.setdefault(line, []).append(item.value)
560 line += 1
561 for line in sorted(line2values.keys()):
562 t = ''
563 for value in line2values[line]:
564 t += f' {value}'
565 log(f' {t}')
566
567 if multiplayer:
568 examine_values()

Callers 1

test_motionFunction · 0.85

Calls 3

logFunction · 0.70
lsMethod · 0.45
appendMethod · 0.45

Tested by 1

test_motionFunction · 0.68