|
18 | 18 | from Orange.widgets.utils.concurrent import TaskState, ConcurrentWidgetMixin |
19 | 19 | from Orange.widgets.utils.sql import check_sql_input |
20 | 20 | from Orange.widgets.utils.widgetpreview import WidgetPreview |
| 21 | +from Orange.widgets.utils.state_summary import format_summary_details |
21 | 22 | from Orange.widgets.widget import Msg, Input, Output, OWWidget |
22 | 23 |
|
23 | 24 |
|
@@ -265,7 +266,9 @@ def set_data(self, data): |
265 | 266 | self.cancel() |
266 | 267 | self.clear_messages() |
267 | 268 | self.data = data |
268 | | - self.info.set_input_summary(len(data) if data else self.info.NoOutput) |
| 269 | + summary = len(data) if data else self.info.NoInput |
| 270 | + details = format_summary_details(data) if data else "" |
| 271 | + self.info.set_input_summary(summary, details) |
269 | 272 | self.enable_controls() |
270 | 273 | self.unconditional_commit() |
271 | 274 |
|
@@ -294,7 +297,8 @@ def on_partial_result(self, _): |
294 | 297 | def on_done(self, result: Results): |
295 | 298 | inliers, outliers = result.inliers, result.outliers |
296 | 299 | summary = len(inliers) if inliers else self.info.NoOutput |
297 | | - self.info.set_output_summary(summary) |
| 300 | + details = format_summary_details(inliers) if inliers else "" |
| 301 | + self.info.set_output_summary(summary, details) |
298 | 302 | self.n_inliers = len(inliers) if inliers else None |
299 | 303 | self.n_outliers = len(outliers) if outliers else None |
300 | 304 |
|
|
0 commit comments