Issues with noise removal widget
Reported by @rarodrig
Reproduce the issue with this workflow
And click on the silx mask icon
in the toolbar of the noise removal widget (maybe also in the ROI widget, I didn't try)
This is the traceback
Traceback (most recent call last):
File "/users/denolf/virtualenvs/ewoks/ubuntu_20_04/py38/lib/python3.8/site-packages/silx/gui/plot/backends/BackendMatplotlib.py", line 1376, in __deferredReplot
self.replot()
File "/users/denolf/virtualenvs/ewoks/ubuntu_20_04/py38/lib/python3.8/site-packages/silx/gui/plot/backends/BackendMatplotlib.py", line 1545, in replot
self.draw()
File "/users/denolf/virtualenvs/ewoks/ubuntu_20_04/py38/lib/python3.8/site-packages/silx/gui/plot/backends/BackendMatplotlib.py", line 1494, in draw
FigureCanvasQTAgg.draw(self)
File "/users/denolf/virtualenvs/ewoks/ubuntu_20_04/py38/lib/python3.8/site-packages/matplotlib/backends/backend_agg.py", line 436, in draw
self.figure.draw(self.renderer)
File "/users/denolf/virtualenvs/ewoks/ubuntu_20_04/py38/lib/python3.8/site-packages/matplotlib/artist.py", line 73, in draw_wrapper
result = draw(artist, renderer, *args, **kwargs)
File "/users/denolf/virtualenvs/ewoks/ubuntu_20_04/py38/lib/python3.8/site-packages/matplotlib/artist.py", line 50, in draw_wrapper
return draw(artist, renderer)
File "/users/denolf/virtualenvs/ewoks/ubuntu_20_04/py38/lib/python3.8/site-packages/matplotlib/figure.py", line 2789, in draw
artists = self._get_draw_artists(renderer)
File "/users/denolf/virtualenvs/ewoks/ubuntu_20_04/py38/lib/python3.8/site-packages/matplotlib/figure.py", line 235, in _get_draw_artists
pos = locator(ax, renderer)
File "/users/denolf/virtualenvs/ewoks/ubuntu_20_04/py38/lib/python3.8/site-packages/matplotlib/axes/_base.py", line 119, in __call__
self._transform - ax.figure.transSubfigure)
File "/users/denolf/virtualenvs/ewoks/ubuntu_20_04/py38/lib/python3.8/site-packages/matplotlib/transforms.py", line 1470, in __sub__
return self + other.inverted()
File "/users/denolf/virtualenvs/ewoks/ubuntu_20_04/py38/lib/python3.8/site-packages/matplotlib/transforms.py", line 1890, in inverted
self._inverted = Affine2D(inv(mtx), shorthand_name=shorthand_name)
File "<__array_function__ internals>", line 180, in inv
File "/users/denolf/virtualenvs/ewoks/ubuntu_20_04/py38/lib/python3.8/site-packages/numpy/linalg/linalg.py", line 552, in inv
ainv = _umath_linalg.inv(a, signature=signature, extobj=extobj)
File "/users/denolf/virtualenvs/ewoks/ubuntu_20_04/py38/lib/python3.8/site-packages/numpy/linalg/linalg.py", line 89, in _raise_linalgerror_singular
raise LinAlgError("Singular matrix")
numpy.linalg.LinAlgError: Singular matrix
Local Variables:
OrderedDict([('err', 'invalid value'), ('flag', 8)])