Skip to content

Commit

Permalink
fix wrong iteration over dict
Browse files Browse the repository at this point in the history
  • Loading branch information
svandenhaute committed Oct 9, 2024
1 parent d78f611 commit de4bf97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion psiflow/hamiltonians.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ def __eq__(self, hamiltonian) -> bool:
return False
if len(self.atomic_energies) != len(hamiltonian.atomic_energies):
return False
for symbol, energy in self.atomic_energies:
for symbol, energy in self.atomic_energies.items():
if not np.allclose(
energy,
hamiltonian.atomic_energies[symbol],
Expand Down

0 comments on commit de4bf97

Please sign in to comment.