Bug report: after running inverse vector-iteration, the result is one eigenmode. When selecting this one eigenmode, an error is thrown because eigenfunc_interface._get_clicked_point_data tries to apply an index to something that is no list.
File "/users/cpa/nicolasb/codes/legolas/post_processing/pylbo/visualisation/eigenfunctions/eigfunc_interface.py", line 262, in on_left_click
idx, xdata, ydata = self._get_clicked_point_data(event)
File "/users/cpa/nicolasb/codes/legolas/post_processing/pylbo/visualisation/eigenfunctions/eigfunc_interface.py", line 345, in _get_clicked_point_data
return idx, xdata[idx], ydata[idx]
File "/users/cpa/nicolasb/Documents/no_backup/miniconda3/envs/legolasenv/lib/python3.9/site-packages/numpy/ma/core.py", line 3224, in __getitem__
dout = self.data[indx]
IndexError: too many indices for array: array is 0-dimensional, but 1 were indexed
Expected result
The eigenvalue is selected and everyone lives happily ever after.
When selecting xdata, ydata from the artist in _get_cicked_point_data, the result is probably a float instead of a list now if the spectrum consists of only one point.
Issue description
Bug report: after running inverse vector-iteration, the result is one eigenmode. When selecting this one eigenmode, an error is thrown because eigenfunc_interface._get_clicked_point_data tries to apply an index to something that is no list.
Bug report
Minimal example for reproduction
Actual result
Expected result
The eigenvalue is selected and everyone lives happily ever after.
When selecting xdata, ydata from the artist in _get_cicked_point_data, the result is probably a float instead of a list now if the spectrum consists of only one point.
Version info