- edited description
[Scatter Plot app] IndexError when manually setting the X range
Issue #1408
resolved
Reported by @Matthias Wocher .
Traceback (most recent call last):
File "D:\source\QGISPlugIns\enmap-box\enmapbox\coreapps\scatterplotapp\scatterplotdialog.py", line 443, in onLiveUpdate
self.onApplyClicked()
File "D:\source\QGISPlugIns\enmap-box\enmapbox\coreapps\scatterplotapp\scatterplotdialog.py", line 386, in onApplyClicked
lower, upper = np.percentile(counts[counts != 0], [self.mDensityP1.value(), self.mDensityP2.value()])
File "<__array_function__ internals>", line 5, in percentile
File "C:\QGIS\apps\Python39\lib\site-packages\numpy\lib\function_base.py", line 3818, in percentile
return _quantile_unchecked(
File "C:\QGIS\apps\Python39\lib\site-packages\numpy\lib\function_base.py", line 3937, in _quantile_unchecked
r, k = _ureduce(a, func=_quantile_ureduce_func, q=q, axis=axis, out=out,
File "C:\QGIS\apps\Python39\lib\site-packages\numpy\lib\function_base.py", line 3515, in _ureduce
r = func(a, **kwargs)
File "C:\QGIS\apps\Python39\lib\site-packages\numpy\lib\function_base.py", line 4050, in _quantile_ureduce_func
n = np.isnan(ap[-1])
IndexError: index -1 is out of bounds for axis 0 with size 0
Comments (2)
-
reporter -
- changed status to resolved
resolves
#1408→ <<cset 477f52d49a01>>
- Log in to comment