Skip to content

Commit

Permalink
More fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Shyue Ping Ong committed Nov 17, 2022
1 parent 03a00b7 commit f881c95
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions m3gnet/graph/_compute.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ def _compute_3body(bond_atom_indices: np.array, n_atoms: np.array):
index = 0

for i, bpa in enumerate(n_bond_per_atom):
for j in range(bpa):
n_triple_ij[start : start + bpa] = bpa - 1
n_triple_ij[start : start + bpa] = bpa - 1
for j, k in itertools.permutations(range(bpa), 2):
triple_bond_indices[index] = [start + j, start + k]
index += 1
Expand Down

0 comments on commit f881c95

Please sign in to comment.