Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Feb 5, 2024
1 parent a9bfdae commit 21748ab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rdkit2ase/xyz2mol.py
Original file line number Diff line number Diff line change
Expand Up @@ -828,9 +828,9 @@ def xyz2AC_huckel(atomicNumList, xyz, charge):
passed, result = rdEHTTools.RunMol(mol_huckel)
opop = result.GetReducedOverlapPopulationMatrix()
tri = np.zeros((num_atoms, num_atoms))
tri[
np.tril(np.ones((num_atoms, num_atoms), dtype=bool))
] = opop # lower triangular to square matrix
tri[np.tril(np.ones((num_atoms, num_atoms), dtype=bool))] = (
opop # lower triangular to square matrix
)
for i in range(num_atoms):
for j in range(i + 1, num_atoms):
pair_pop = abs(tri[j, i])
Expand Down

0 comments on commit 21748ab

Please sign in to comment.