Skip to content

Commit

Permalink
Merge pull request #2595 from lanzagar/fastsel
Browse files Browse the repository at this point in the history
[FIX] OWBoxPlot: Faster selection
  • Loading branch information
astaric authored Sep 21, 2017
2 parents 351b364 + 386d0d0 commit 4ebe394
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Orange/widgets/visualize/owboxplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -885,10 +885,11 @@ def commit(self):
selected, selection = None, []
if self.conditions:
selected = Values(self.conditions, conjunction=False)(self.dataset)
selection = [i for i, inst in enumerate(self.dataset)
if inst in selected]
selection = np.in1d(
self.dataset.ids, selected.ids, assume_unique=True).nonzero()[0]
self.Outputs.selected_data.send(selected)
self.Outputs.annotated_data.send(create_annotated_table(self.dataset, selection))
self.Outputs.annotated_data.send(
create_annotated_table(self.dataset, selection))

def show_posthoc(self):
def line(y0, y1):
Expand Down

0 comments on commit 4ebe394

Please sign in to comment.