xsocs crashes when in centroid fit window
The fit window that opens up after performing a centroid fit and that should allow visualisation/interaction with the fit results, crashes as soon as it is clicked upon it:
Traceback (most recent call last):
File "/users/zatterin/Envs/py3/lib/python3.5/site-packages/h5py/_hl/selections.py", line 85, in select
int(a)
TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/users/zatterin/Envs/py3/lib/python3.5/site-packages/xsocs/gui/view/FitView.py", line 239, in __slotPointSelected
self.__plotFitResults(point.xIdx)
File "/users/zatterin/Envs/py3/lib/python3.5/site-packages/xsocs/gui/view/FitView.py", line 255, in __plotFitResults
cube = qspaceH5.qspace_slice(xIdx)
File "/users/zatterin/Envs/py3/lib/python3.5/site-packages/xsocs/io/QSpaceH5.py", line 93, in qspace_slice
return dset[index]
File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
File "/users/zatterin/Envs/py3/lib/python3.5/site-packages/h5py/_hl/dataset.py", line 476, in __getitem__
selection = sel.select(self.shape, args, dsid=self.id)
File "/users/zatterin/Envs/py3/lib/python3.5/site-packages/h5py/_hl/selections.py", line 90, in select
sel[args]
File "/users/zatterin/Envs/py3/lib/python3.5/site-packages/h5py/_hl/selections.py", line 366, in __getitem__
raise TypeError("Advanced selection inappropriate")
TypeError: Advanced selection inappropriate
[1] 24259 abort xsocs
Note that instead interaction with the Gaussian fit windows works without any problem.
- operating system: debian 9
- python version: 3.5.3
- xsocs version: 0.6.0-dev0
- h5py version: 2.7.1