Skip to content

Commit

Permalink
Fix to ASE function
Browse files Browse the repository at this point in the history
  • Loading branch information
ElliottKasoar committed Nov 28, 2024
1 parent 27f44af commit 0d7a352
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions abcd/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ def to_ase(self):
# atoms.calc = get_calculator(data['results']['calculator_name'])(**params)

params = self.pop("calculator_parameters", {})
info_keys -= {"calculator_parameters"}

atoms.calc = SinglePointCalculator(atoms, **params)
atoms.calc.results.update((key, self[key]) for key in results_keys)
Expand Down

0 comments on commit 0d7a352

Please sign in to comment.