Skip to content

Commit 1f4bef0

Browse files
committed
OWCSVImport: Use new-style signals to enable auto summaries
1 parent 7f1788f commit 1f4bef0

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Orange/widgets/data/owcsvimport.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -604,17 +604,17 @@ class OWCSVFileImport(widget.OWWidget):
604604
category = "Data"
605605
keywords = ["file", "load", "read", "open", "csv"]
606606

607-
outputs = [
608-
widget.OutputSignal(
607+
class Outputs:
608+
data = widget.Output(
609609
name="Data",
610610
type=Orange.data.Table,
611-
doc="Loaded data set."),
612-
widget.OutputSignal(
611+
doc="Loaded data set.")
612+
data_frame = widget.Output(
613613
name="Data Frame",
614614
type=pd.DataFrame,
615-
doc=""
615+
doc="",
616+
auto_summary=False
616617
)
617-
]
618618

619619
class Error(widget.OWWidget.Error):
620620
error = widget.Msg(
@@ -1213,8 +1213,8 @@ def __handle_result(self, f):
12131213
table.name = os.path.splitext(os.path.split(filename)[-1])[0]
12141214
else:
12151215
table = None
1216-
self.send("Data Frame", df)
1217-
self.send('Data', table)
1216+
self.Outputs.data_frame.send(df)
1217+
self.Outputs.data.send(table)
12181218
self._update_status_messages(table)
12191219

12201220
def _update_status_messages(self, data):

0 commit comments

Comments
 (0)