Skip to content

Commit

Permalink
Fix eachatom
Browse files Browse the repository at this point in the history
  • Loading branch information
singularitti committed Sep 18, 2023
1 parent 5a48513 commit 3e15966
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/eachatom.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3e15966

Please sign in to comment.