From 3e1596605515de200cf09d99d8d8fb6b328194df Mon Sep 17 00:00:00 2001 From: singularitti Date: Mon, 18 Sep 2023 01:20:44 -0400 Subject: [PATCH] Fix `eachatom` --- src/eachatom.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/eachatom.jl b/src/eachatom.jl index f53b333..f96614e 100644 --- a/src/eachatom.jl +++ b/src/eachatom.jl @@ -10,7 +10,7 @@ end Create a generator that iterates over the atoms in a `Cell`. """ -eachatom(cell::Cell) = EachAtom(cell) +eachatom(cell::Cell) = EachAtom(cell.atoms, cell.positions) # Similar to https://github.com/JuliaCollections/IterTools.jl/blob/0ecaa88/src/IterTools.jl#L1028-L1032 function Base.iterate(iter::EachAtom, state=1)