- changed milestone to 3.10 (Hotfix)
- removed component
MapDock.insertLayer is broken
from qgis._core import QgsRasterLayer
from enmapbox import EnMAPBox, initAll
from enmapbox.exampledata import enmap, hires
from enmapbox.gui.dataviews.docks import MapDock
from enmapbox.testing import start_app
qgsApp = start_app()
initAll()
enmapBox = EnMAPBox(None)
dock: MapDock = enmapBox.onDataDropped([QgsRasterLayer(enmap, 'enmap')])
dock.insertLayer(0, QgsRasterLayer('hires'))
qgsApp.exec_()
D:\miniconda\envs\qgis\lib\importlib_bootstrap.py:219: RuntimeWarning: numpy.ndarray size changed, may indicate binary incompatibility. Expected 16 from C header, got 88 from PyObject
return f(*args, **kwds)
Traceback (most recent call last):
File "D:\source\QGISPlugIns\enmap-box\enmapbox\gui\enmapboxgui.py", line 1727, in onDataSourcesAdded
self.spectralProfileSourcePanel().addSources(dataSource.asMapLayer())
File "D:\source\QGISPlugIns\enmap-box\enmapbox\externals\qps\speclib\gui\spectralprofilesources.py", line 2259, in addSources
self.mBridge.addSources(sources)
File "D:\source\QGISPlugIns\enmap-box\enmapbox\externals\qps\speclib\gui\spectralprofilesources.py", line 1922, in addSources
src = self.mSrcModel.addSources(source)
File "D:\source\QGISPlugIns\enmap-box\enmapbox\externals\qps\speclib\gui\spectralprofilesources.py", line 252, in addSources
assert isinstance(source, SpectralProfileSource)
AssertionError
Comments (5)
-
reporter -
reporter related to
#985 -
Why was this issue labeled as Hotfix? 3.10 is not official yet.
-
- changed status to resolved
resolves
#881→ <<cset 6aaa505b03cb>>
-
reporter Why was this issue labeled as Hotfix? 3.10 is not official yet.
We may skip the Hotfix milestones. I thought that I took those from QGIS, but no, they aren’t using those.
- Log in to comment