[Reclassify] AssertionError

Issue #1290 resolved
Andreas Rabe created an issue

Reported by Henrike.

Use this setup (dataset attached):

Gives error:

Traceback (most recent call last):
File
"C:\Users\PC\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\enmapboxplugin\enmapbox\coreapps\recla
ssifyapp\reclassify.py", line 552, in onAddRaster
self.setSrcRasterLayer(file)
File
"C:\Users\PC\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\enmapboxplugin\enmapbox\coreapps\recla
ssifyapp\reclassify.py", line 646, in setSrcRasterLayer
assert is instance(src, QgsRasterLayer)
AssertionError

Comments (4)

  1. Benjamin Jakimow

    Cannot reproduce this error, but runs into a hubflow error:

    Traceback (most recent call last):
      File "D:\Repositories\enmap-box\enmapbox\coreapps\reclassifyapp\reclassify.py", line 727, in <lambda>
        uiDialog.accepted.connect(lambda: self.runReclassification(**uiDialog.reclassificationSettings()))
      File "D:\Repositories\enmap-box\enmapbox\coreapps\reclassifyapp\reclassify.py", line 737, in runReclassification
        reclassify.reclassify(settings['pathSrc'],
      File "D:\Repositories\enmap-box\enmapbox\coreapps\reclassifyapp\reclassify.py", line 113, in reclassify
        newDef = _classic.hubflow.core.ClassDefinition(names=names[1:], colors=colors[1:], ids=labels[1:])
      File "D:\Repositories\enmap-box\enmapbox\coreapps\_classic\hubflow\core.py", line 3573, in __init__
        assert isinstance(classes, int)
    AssertionError
    

  2. Andreas Rabe reporter

    hubflow is deprecated and the whole logic for Classification Schemes has changed, so this whole app is kind of outdated.

    @Benjamin Jakimow I will just remove it from the GUI.

  3. Log in to comment