Commit a0d5a06d authored by Julia Garriga Ferrer's avatar Julia Garriga Ferrer
Browse files

[gui][dimensions] Inserts dimension by axis to fix bug

parent f00ebae4
Pipeline #18010 failed with stage
in 2 minutes and 25 seconds
......@@ -31,7 +31,6 @@ __date__ = "03/12/2019"
import numpy
from silx.gui import qt
from silx.gui.colors import Colormap
from silx.gui.plot import Plot1D
from darfix.core.blindSourceSeparation import BSS
......
......@@ -80,9 +80,10 @@ class ChooseDimensionWidget(qt.QWidget):
"""
self._dimensionCB.clear()
for dimension in dimensions:
self._dimensionCB.addItem(dimension[1].name)
self._dimensionCB.insertItem(dimension[0], dimension[1].name)
self.dimension = 0
self.value = 0
self._dimensionCB.setCurrentIndex(self.dimension)
self.dimensions = dimensions
self._valueCB.clear()
for value in dimensions.get(self.dimension).unique_values:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment