Skip to content

Commit

Permalink
Merge branch 'PariserParr' of https://github.com/giovanni-br/ModelHam…
Browse files Browse the repository at this point in the history
…iltonian into PariserParr
  • Loading branch information
giovanni-br committed Aug 6, 2024
2 parents 2c44a3b + ede8a25 commit b6359c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion moha/rauk/PariserParr.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ def compute_u(connectivity, atom_dictionary, affinity_dictionary):
affinity_path = Path(__file__).parent / "affinity.json"
affinity_dictionary = json.load(open(affinity_path, "rb"))

unique_atoms = set([atom for tpl in connectivity for atom in tpl[:2]])
unique_atoms = {atom for tpl in connectivity for atom in tpl[:2]}
num_sites = len(unique_atoms)

u_onsite = []
Expand Down

0 comments on commit b6359c2

Please sign in to comment.