Skip to content

Commit

Permalink
fix single atom energies in script, close #326
Browse files Browse the repository at this point in the history
  • Loading branch information
YuuuXie committed Oct 24, 2022
1 parent f6e457f commit 1adb753
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 1adb753

Please sign in to comment.