inpho / vsm

Vector Space Model Framework developed for InPhO
http://inpho.github.io/vsm
Other
35 stars 14 forks source link

Fix FutureWarnings for numpy #109

Closed JaimieMurdock closed 9 years ago

JaimieMurdock commented 9 years ago

All of the following places need to be changed to: if np.all(self._phi==None) or self._phi is None, depending on type information...

/home/jammurdo/workspace/vsm/vsm/viewer/ldacgsviewer.py:63: 
  FutureWarning: comparison to `None` will result in an elementwise object comparison in the future.
    if self._phi==None:
/home/jammurdo/workspace/vsm/vsm/viewer/ldacgsviewer.py:210: 
  FutureWarning: comparison to `None` will result in an elementwise object comparison in the future.
    elif not topic_indices==None:
/home/jammurdo/workspace/vsm/vsm/viewer/ldacgsviewer.py:75: 
  FutureWarning: comparison to `None` will result in an elementwise object comparison in the future.
    if self._theta==None:
/home/jammurdo/workspace/vsm/vsm/viewer/ldacgsviewer.py:85: 
  FutureWarning: comparison to `None` will result in an elementwise object comparison in the future.
    if self._H_phi==None: