diff --git a/Orange/widgets/data/owcontinuize.py b/Orange/widgets/data/owcontinuize.py index 5573d81eba8..4fcd4ab67d9 100644 --- a/Orange/widgets/data/owcontinuize.py +++ b/Orange/widgets/data/owcontinuize.py @@ -13,6 +13,7 @@ from Orange.widgets.settings import Setting from Orange.widgets.utils.sql import check_sql_input from Orange.widgets.utils.widgetpreview import WidgetPreview +from Orange.widgets.utils.state_summary import format_summary_details from Orange.widgets.widget import Input, Output @@ -116,7 +117,8 @@ def setData(self, data): self.info.set_output_summary(self.info.NoOutput) self.Outputs.data.send(None) else: - self.info.set_input_summary(len(data)) + self.info.set_input_summary(len(data), + format_summary_details(data)) self.unconditional_commit() def enable_normalization(self): @@ -151,7 +153,8 @@ def commit(self): domain = continuizer(self.data) data = self.data.transform(domain) self.Outputs.data.send(data) - self.info.set_output_summary(len(data)) + self.info.set_output_summary(len(data), + format_summary_details(data)) else: self.Outputs.data.send(self.data) # None or empty data diff --git a/Orange/widgets/data/tests/test_owcontinuize.py b/Orange/widgets/data/tests/test_owcontinuize.py index dfbe71abdcc..8bb950e2678 100644 --- a/Orange/widgets/data/tests/test_owcontinuize.py +++ b/Orange/widgets/data/tests/test_owcontinuize.py @@ -10,7 +10,7 @@ from Orange.widgets.data import owcontinuize from Orange.widgets.data.owcontinuize import OWContinuize from Orange.widgets.tests.base import WidgetTest -from orangewidget.widget import StateInfo +from Orange.widgets.utils.state_summary import format_summary_details class TestOWContinuize(WidgetTest): @@ -48,9 +48,11 @@ def test_summary(self): output_sum = self.widget.info.set_output_summary = Mock() self.send_signal(self.widget.Inputs.data, data) - input_sum.assert_called_with(int(StateInfo.format_number(len(data)))) + input_sum.assert_called_with(len(data), + format_summary_details(data)) output = self.get_output(self.widget.Outputs.data) - output_sum.assert_called_with(int(StateInfo.format_number(len(output)))) + output_sum.assert_called_with(len(output), + format_summary_details(output)) input_sum.reset_mock() output_sum.reset_mock()