Skip to content

Commit

Permalink
OWRank: Convert setting selected_rows from np.array to list
Browse files Browse the repository at this point in the history
  • Loading branch information
janezd committed Dec 20, 2019
1 parent ccee167 commit 04a7108
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Orange/widgets/data/owrank.py
Original file line number Diff line number Diff line change
Expand Up @@ -464,8 +464,8 @@ def updateScores(self):

def on_select(self):
# Save indices of attributes in the original, unsorted domain
self.selected_rows = self.ranksModel.mapToSourceRows([
i.row() for i in self.ranksView.selectionModel().selectedRows(0)])
self.selected_rows = list(self.ranksModel.mapToSourceRows([
i.row() for i in self.ranksView.selectionModel().selectedRows(0)]))
self.commit()

def setSelectionMethod(self, method):
Expand Down

0 comments on commit 04a7108

Please sign in to comment.