Skip to content

Commit

Permalink
Bugfix for additional info from ase
Browse files Browse the repository at this point in the history
  • Loading branch information
phohenberger authored Dec 15, 2023
1 parent 42302a5 commit b7d8984
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion zndraw/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b7d8984

Please sign in to comment.