Skip to content

Commit a290626

Browse files
authored
Merge pull request #102 from thocevar/clustering
[FIX] OWNxClustering: doesn't load due to discontinued method get_next_name
2 parents 487912c + 8a08d94 commit a290626

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

orangecontrib/network/widgets/OWNxClustering.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from Orange.data import Table
44
from Orange.widgets import gui, widget, settings
5-
from Orange.widgets.utils.annotated_data import get_next_name
5+
from Orange.data.util import get_unique_names
66
from Orange.widgets.widget import Input, Output
77
from orangecontrib.network import Graph, community as cd
88

@@ -77,7 +77,7 @@ def commit(self):
7777

7878
labels = alg(self.net, **kwargs)
7979
domain = self.net.items().domain
80-
cd.add_results_to_items(self.net, labels, get_next_name(domain, 'Cluster'))
80+
cd.add_results_to_items(self.net, labels, get_unique_names(domain, 'Cluster'))
8181

8282
self.info.setText('%d clusters found' % len(set(labels.values())))
8383
self.Outputs.items.send(self.net.items())

0 commit comments

Comments
 (0)