1. biolab
  2. Untitled project
  3. orange

Commits

Aleš Erjavec  committed 224a34d

Bug fix. Check for a None value.

  • Participants
  • Parent commits 5a69a29
  • Branches default

Comments (0)

Files changed (1)

File Orange/OrangeWidgets/Visualize/OWLinProjGraph.py

View file
  • Ignore whitespace
             anchorRadius = numpy.sqrt(XAnchors*XAnchors + YAnchors*YAnchors)
             validSubData = self.getValidSubsetList(indices)
             # jitter points if Radviz
-            projSubData = self.createProjectionAsNumericArray(indices, validData = validSubData, scaleFactor = self.scaleFactor, normalize = self.normalizeExamples, jitterSize = self.jitter_size if self.normalizeExamples else -1, useAnchorData = 1, removeMissingData = 0, useSubsetData = 1).T
-            sub_x_positions = projSubData[0]
-            sub_y_positions = projSubData[1]
+            projSubData = self.createProjectionAsNumericArray(indices, validData = validSubData, scaleFactor = self.scaleFactor, normalize = self.normalizeExamples, jitterSize = self.jitter_size if self.normalizeExamples else -1, useAnchorData = 1, removeMissingData = 0, useSubsetData = 1)
+            if projSubData is not None:
+                projSubData = projSubData.T
+                sub_x_positions = projSubData[0]
+                sub_y_positions = projSubData[1]
 
             for i in range(len(self.rawSubsetData)):
                 if not validSubData[i]: # check if has missing values