From cb7c0d842fd8f655ed41826647e4aed747ce9557 Mon Sep 17 00:00:00 2001 From: Oskar Weigl Date: Tue, 26 Feb 2019 20:52:05 -0800 Subject: [PATCH] fix dump errors axis mismatch --- tools/odrive/utils.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tools/odrive/utils.py b/tools/odrive/utils.py index 28d1d737..e74376cf 100755 --- a/tools/odrive/utils.py +++ b/tools/odrive/utils.py @@ -32,9 +32,10 @@ class OperationAbortedException(Exception): pass def dump_errors(odrv, clear=False): - axes = [axis for name, axis in odrv._remote_attributes.items() if 'axis' in name] - for num, axis in enumerate(axes): - print('Axis{}:'.format(num)) + axes = [(name, axis) for name, axis in odrv._remote_attributes.items() if 'axis' in name] + axes.sort() + for name, axis in axes: + print(name) # Flatten axis and submodules # (name, remote_obj, errorcode)