Classification Workflow problems with Raster / Classification Mode
Issue #617
resolved
Classification Workflow wont accept raster classification as sample
Error: 'ClassificationWorkflowApp' object has no attribute 'colors'
Stack trace:
An error has occurred while executing Python code:
TypeError: can't multiply sequence by non-int of type 'float'
Traceback (most recent call last):
File "/root/.local/share/QGIS/QGIS3/profiles/default/python/plugins/enmapboxplugin/enmapbox/coreapps/enmapboxapplications/classificationapp/core.py", line 145, in initClasses
saveLayerAsClassification(
File "/root/.local/share/QGIS/QGIS3/profiles/default/python/plugins/enmapboxplugin/hubdsm/processing/savelayerasclassification.py", line 141, in saveLayerAsClassification
classification.setCategories(categories=categories)
File "/root/.local/share/QGIS/QGIS3/profiles/default/python/plugins/enmapboxplugin/hubdsm/core/gdalband.py", line 231, in setCategories
names = ['n/a'] * (maxId + 1)
TypeError: can't multiply sequence by non-int of type 'float'
Python version: 3.8.5 (default, Jul 28 2020, 12:59:40) [GCC 9.3.0]
QGIS version: 3.16.3-Hannover Hannover, exported
How to reproduce:
- Use Algo Testdata → Create Test Classification
- Use Classification Workflow in Raster/Classification Mode with enmap_berlin.bsq and the created classification from Create Test Classification
- Run
Version 3.7.20210125T112758.master (running on docker: qgis/qgis release-3_16, based on Ubuntu 20.04.1 LTS)
Comments (5)
-
-
- changed status to resolved
resolves
#617→ <<cset 4973b2c26a06>>
-
resolves
#617→ <<cset 975e602553ff>>
-
reporter Yes, can confirm, it is fixed
-
- removed component
Removing component: Internal Apps (automated comment)
- Log in to comment
Confirmed! Will fix this.