NeighborList: Remove off-by-one error
This commit is contained in:
parent
7d74e62696
commit
92b0024f25
@ -85,7 +85,7 @@ class NeighborList:
|
||||
if not self._items:
|
||||
raise IndexError("No items found!")
|
||||
try:
|
||||
if self.idx + offset > 0:
|
||||
if self.idx + offset >= 0:
|
||||
new = self._items[self.idx + offset]
|
||||
else:
|
||||
raise IndexError
|
||||
|
Loading…
Reference in New Issue
Block a user