diff --git a/chgnet/model/dynamics.py b/chgnet/model/dynamics.py index 5cb618e4..fc0f4d9a 100644 --- a/chgnet/model/dynamics.py +++ b/chgnet/model/dynamics.py @@ -222,7 +222,7 @@ def relax( A dictionary with 'final_structure' and 'trajectory'. """ if isinstance(atoms, Structure): - atoms = AseAtomsAdaptor.get_atoms(atoms) + atoms = atoms.to_ase_atoms() atoms.calc = self.calculator # assign model used to predict forces @@ -432,7 +432,7 @@ def __init__( self.ensemble = ensemble self.thermostat = thermostat if isinstance(atoms, (Structure, Molecule)): - atoms = AseAtomsAdaptor.get_atoms(atoms) + atoms = atoms.to_ase_atoms() self.atoms = atoms if isinstance(model, CHGNetCalculator):