diff --git a/orangecontrib/spectroscopy/tests/test_owhyper.py b/orangecontrib/spectroscopy/tests/test_owhyper.py index 153815010..5b2f84510 100644 --- a/orangecontrib/spectroscopy/tests/test_owhyper.py +++ b/orangecontrib/spectroscopy/tests/test_owhyper.py @@ -22,7 +22,8 @@ from orangecontrib.spectroscopy.data import _spectra_from_image, build_spec_table from orangecontrib.spectroscopy.io.util import VisibleImage -from orangecontrib.spectroscopy.preprocess.integrate import IntegrateFeaturePeakSimple, Integrate +from orangecontrib.spectroscopy.preprocess.integrate import IntegrateFeaturePeakSimple, \ + Integrate, IntegrateFeatureSimple from orangecontrib.spectroscopy.widgets import owhyper from orangecontrib.spectroscopy.widgets.owhyper import \ OWHyper @@ -415,7 +416,9 @@ def last_called_array(m): wrap = self.widget.imageplot.img - # integrals from zero; default + # integral from zero + self.widget.integration_method = \ + self.widget.integration_methods.index(IntegrateFeatureSimple) self.send_signal("Data", data) with patch.object(wrap, 'setImage', wraps=wrap.setImage) as m: wait_for_image(self.widget) diff --git a/orangecontrib/spectroscopy/widgets/owhyper.py b/orangecontrib/spectroscopy/widgets/owhyper.py index 9ffe3b71b..9e5f51eee 100644 --- a/orangecontrib/spectroscopy/widgets/owhyper.py +++ b/orangecontrib/spectroscopy/widgets/owhyper.py @@ -1107,7 +1107,7 @@ class Outputs(SelectionOutputsMixin.Outputs): imageplot = SettingProvider(ImagePlot) curveplot = SettingProvider(CurvePlotHyper) - integration_method = Setting(0) + integration_method = Setting(4) # Closest value integration_methods = Integrate.INTEGRALS value_type = Setting(0) attr_value = ContextSetting(None)