Skip to content

Commit

Permalink
Merge pull request biolab#1861 from nikicc/imageviewer-fix-indexing
Browse files Browse the repository at this point in the history
[FIX] OWImageViewer: Fix selection with missing values
(cherry picked from commit 04be225)
  • Loading branch information
kernc authored and astaric committed Jan 18, 2017
1 parent f4133f2 commit 796b15a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Orange/widgets/data/owimageviewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -991,12 +991,12 @@ def setupScene(self):
if self.data:
attr = self.stringAttrs[self.imageAttr]
titleAttr = self.allAttrs[self.titleAttr]
instances = [inst for inst in self.data
if numpy.isfinite(inst[attr])]
assert self.thumbnailView.count() == 0
size = QSizeF(self.imageSize, self.imageSize)

for i, inst in enumerate(instances):
for i, inst in enumerate(self.data):
if not numpy.isfinite(inst[attr]): # skip missing
continue
url = self.urlFromValue(inst[attr])
title = str(inst[titleAttr])

Expand Down

0 comments on commit 796b15a

Please sign in to comment.