diff --git a/zndraw/frame.py b/zndraw/frame.py index 90b4c924b..177ba033a 100644 --- a/zndraw/frame.py +++ b/zndraw/frame.py @@ -82,7 +82,9 @@ def from_atoms(cls, atoms: ase.Atoms): """ Creates an instance of the frame class from an ase.Atoms object """ - frame = cls(**atoms.arrays) + data = atoms.arrays + + frame = cls(positions=data["positions"], numbers=data["numbers"]) frame.cell = np.array(atoms.cell) frame.pbc = atoms.pbc