Skip to content

Commit

Permalink
convert all results to float64 for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
miketynes committed Nov 6, 2024
1 parent 70f1562 commit 4b898fa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cascade/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ def canonicalize(atoms: Atoms) -> Atoms:
old_calc = atoms.calc
out_atoms.calc = SinglePointCalculator(atoms)
out_atoms.calc.results = old_calc.results.copy()

for k, v in out_atoms.calc.results.items():
if isinstance(v, np.ndarray):
out_atoms.calc.results[k] = v.astype(np.float64)

return out_atoms


Expand Down

0 comments on commit 4b898fa

Please sign in to comment.