"Identify cursor location values" fails for NoData

Issue #479 resolved
Martin Danner created an issue

After selecting the tool “Identify cursor location values” and trying to identify a pixel that is markes as “NoData” (Data Ignore Value set in ENVI Header), the EnMAP-Box crashes. This is the stacktrace:

File "…\enmapbox\externals\qps\cursorlocationvalue.py", line 360, in loadCursorLocation
    self.reloadCursorLocation()
  File "…\enmapbox\externals\qps\cursorlocationvalue.py", line 439, in reloadCursorLocation
    bandValue = as_py_value(results[b], l.dataProvider().dataType(b))
  File "…\enmapbox\externals\qps\utils.py", line 1166, in as_py_value
    return int(value)
TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'

Comments (3)

  1. Log in to comment