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 6, 2017
1 parent acf2705 commit 822584a
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 822584a

Please sign in to comment.