Skip to content

Commit

Permalink
bug fix 2
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthiasSachs committed Oct 30, 2023
1 parent 9ad2822 commit 35820c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/iterator.jl
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ Alternatively, indsf can also be of the form of a filter function `atom_filter(i
where both atoms satisfy the filter criterion.
"""
bonds(at::Atoms, rcutbond, rcutenv, env_filter, subset) = FilteredBondsIterator(at, rcutbond, rcutenv, env_filter, subset)
bonds(at::Atoms, cutoff::AbstractBondCutoff, filter=_->true) = FilteredBondsIterator( at, cutoff.rcutbond,
bonds(at::Atoms, cutoff::AbstractBondCutoff, filter=(_,_)->true) = FilteredBondsIterator( at, cutoff.rcutbond,
env_cutoff(cutoff) ,
(r, z) -> env_filter(r, z, cutoff), filter )

Expand Down

0 comments on commit 35820c6

Please sign in to comment.