Skip to content

Commit

Permalink
ASE atoms
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurentRDC committed Nov 11, 2018
1 parent bac1c90 commit f73da8a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crystals/atom.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,12 @@ def ase_atom(self, lattice=None, **kwargs):
------
ImportError : If ASE is not installed
"""
from ase import Atom # pylint: disable import-error
import ase

if lattice is None:
lattice = Lattice(np.eye(3))

return Atom(
return ase.Atom(
symbol=self.element,
position=self.xyz(lattice),
magmom=self.magmom,
Expand Down

0 comments on commit f73da8a

Please sign in to comment.