Skip to content

Commit

Permalink
Merge pull request #327 from mir-group/bugfix/yu/single_atom_en
Browse files Browse the repository at this point in the history
Single atom energy dict for issue #326
  • Loading branch information
YuuuXie authored Oct 25, 2022
2 parents f6e457f + 1adb753 commit 10af764
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions flare/scripts/otf_train.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,8 @@ def get_sgp_calc(flare_config):
sae_dct
), "'single_atom_energies' should be the same length as 'species'"
single_atom_energies = {i: sae_dct[i] for i in range(n_species)}
else:
single_atom_energies = {i: 0 for i in range(n_species)}

sgp = SGP_Wrapper(
kernels=kernels,
Expand Down

0 comments on commit 10af764

Please sign in to comment.