NeighborList: Ensure self.idx is always set
This commit is contained in:
parent
e1fe6111ec
commit
858ff4a4f0
@ -58,6 +58,8 @@ class NeighborList:
|
||||
self._default = default
|
||||
if default is not _UNSET:
|
||||
self.idx = self._items.index(default)
|
||||
else:
|
||||
self.idx = None
|
||||
self._mode = mode
|
||||
|
||||
@property
|
||||
|
Loading…
Reference in New Issue
Block a user