Changeset 10479:c9309fd3b18b in orange


Ignore:
Timestamp:
03/09/12 09:21:17 (2 years ago)
Author:
Matija Polajnar <matija.polajnar@…>
Branch:
default
rebase_source:
ea299da73955704d4b28fd04f1d8620364ca413a
Message:

projection.linear: Workaround a bug in older numpy, where masked_array==None throws an exception.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/projection/linear.py

    r10477 r10479  
    992992 
    993993        # test if all values are 0, if there is an invalid number in the array and if there are complex numbers in the array 
    994         if (vectors == None or not vectors.any() or 
     994        if (type(vectors) == type(None) or not vectors.any() or 
    995995            False in numpy.isfinite(vectors) or False in numpy.isreal(vectors)): 
    996996            self.set_statusbar_text("Unable to compute anchor positions for the selected attributes")   
Note: See TracChangeset for help on using the changeset viewer.