Changeset 11800:224a34d6f0cd in orange


Ignore:
Timestamp:
12/09/13 11:54:58 (4 months ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Bug fix. Check for a None value.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/OrangeWidgets/Visualize/OWLinProjGraph.py

    r10913 r11800  
    261261            validSubData = self.getValidSubsetList(indices) 
    262262            # jitter points if Radviz 
    263             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 
    264             sub_x_positions = projSubData[0] 
    265             sub_y_positions = projSubData[1] 
     263            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) 
     264            if projSubData is not None: 
     265                projSubData = projSubData.T 
     266                sub_x_positions = projSubData[0] 
     267                sub_y_positions = projSubData[1] 
    266268 
    267269            for i in range(len(self.rawSubsetData)): 
Note: See TracChangeset for help on using the changeset viewer.