While browsing through the implementation of SparseOrbital.iter_nnz I noticed that one of the object identity tests was the non-standard not object is None instead of object is not None, see
|
elif not orbitals is None: |
. This is very minor and doesn't really affect the logic, but I was wondering if this should be changed nonetheless to match the standard.
While browsing through the implementation of
SparseOrbital.iter_nnzI noticed that one of the object identity tests was the non-standardnot object is Noneinstead ofobject is not None, seesisl/src/sisl/_core/sparse_geometry.py
Line 1500 in fc153f0