Skip to content

Commit

Permalink
fix nl example (#136)
Browse files Browse the repository at this point in the history
  • Loading branch information
PicoCentauri authored Jan 8, 2025
1 parent 3d61363 commit b3310fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/src/references/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ changelog <https://keepachangelog.com/en/1.1.0/>`_ format. This project follows
Fixed
#####

* Fix inconsistent ``cutoff`` in neighbor list example
* All calculators now check if the cell is zero if the potential is range-separated


Expand Down
2 changes: 1 addition & 1 deletion examples/2-neighbor-lists-usage.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ def distances(
#
# and create new distances in a similar manner as above.

nl = vesin.torch.NeighborList(cutoff=1.0, full_list=False)
nl = vesin.torch.NeighborList(cutoff=cutoff, full_list=False)
neighbor_indices_new, d = nl.compute(
points=positions_new, box=cell, periodic=True, quantities="Pd"
)
Expand Down

0 comments on commit b3310fb

Please sign in to comment.