Skip to content

Non-standard object identity test in SparseOrbital.iter_nnz #995

@ahkole

Description

@ahkole

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions