Skip to content

Commit

Permalink
Merge pull request #141 from SCM-NV/MattiHellstrom/asecharges
Browse files Browse the repository at this point in the history
include charges in AMSResults.get_main_ase_atoms() SO103
  • Loading branch information
dormrod authored Sep 6, 2024
2 parents 88946f4 + 64eaeaa commit 447812b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions interfaces/adfsuite/ams.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,12 @@ def get_main_ase_atoms(self, get_results: bool = False):
except KeyError:
pass

try:
charges = np.array(self.get_charges()).ravel()
atoms.calc.results["charges"] = charges
except KeyError:
pass

return atoms

def get_history_molecule(self, step: int):
Expand Down

0 comments on commit 447812b

Please sign in to comment.