Changeset 10480:03646b57cb15 in orange


Ignore:
Timestamp:
03/09/12 10:54:46 (2 years ago)
Author:
Matija Polajnar <matija.polajnar@…>
Branch:
default
Message:

Code style improvement for my last patch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/projection/linear.py

    r10479 r10480  
    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 (type(vectors) == type(None) or not vectors.any() or 
     994        if (vectors is 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.