예제 #1
0
 def __getattr__(self, attr):
     if attr == 'colind':
         warn("colind attribute no longer in use. Use .indices instead",
                 DeprecationWarning)
         return self.indices
     else:
         return _cs_matrix.__getattr__(self, attr)
예제 #2
0
파일: csr.py 프로젝트: minrk/scipy
 def __getattr__(self, attr):
     if attr == 'colind':
         warn("colind attribute no longer in use. Use .indices instead",
              DeprecationWarning)
         return self.indices
     else:
         return _cs_matrix.__getattr__(self, attr)