hyperspyUI icon indicating copy to clipboard operation
hyperspyUI copied to clipboard

Axes order window bugs

Open thomasaarholt opened this issue 8 years ago • 1 comments
trafficstars

The up and down arrows present on the attached image yield the error at the bottom of this post. I don't know what they do, but if they navigate through the signal then they are most welcome.

In addition, the "reverse axes" button does not do anything, and doesn't report an error. For info, a bug where the hyperspy transpose doesn't work as intended could affect it: (https://github.com/hyperspy/hyperspy/issues/1387).

screenshot 2017-01-18 13 20 17
Traceback (most recent call last):
  File "/Users/thomas/Dropbox/0_Git/GitHub/hyperspyUI/hyperspyui/plugins/axesorderwidget.py", line 179, in _move_down
    self._move_item(i)
  File "/Users/thomas/Dropbox/0_Git/GitHub/hyperspyUI/hyperspyui/plugins/axesorderwidget.py", line 135, in _move_item
    ax = item.data(QtCore.Qt.UserRole)
AttributeError: 'NoneType' object has no attribute 'data'

thomasaarholt avatar Jan 18 '17 13:01 thomasaarholt

This has received very little love. The buttons are supposed to change order of axes, including moving from signal to nav space. It should also support drag and drop?

I'll try to look into the exception.

vidartf avatar Jan 18 '17 15:01 vidartf