Add logging to NeighborList
This commit is contained in:
parent
7d11790d35
commit
4f6e149289
@ -17,6 +17,8 @@
|
|||||||
|
|
||||||
"""Custom useful datatypes."""
|
"""Custom useful datatypes."""
|
||||||
|
|
||||||
|
import logging
|
||||||
|
|
||||||
# Used as default argument in the constructor so default can be None.
|
# Used as default argument in the constructor so default can be None.
|
||||||
_UNSET = object()
|
_UNSET = object()
|
||||||
|
|
||||||
@ -77,6 +79,8 @@ class NeighborList:
|
|||||||
|
|
||||||
"""
|
"""
|
||||||
# FIXME - zooming somehow wraps...
|
# FIXME - zooming somehow wraps...
|
||||||
|
logging.debug("{} items, idx {}, offset {}".format(len(self._items),
|
||||||
|
self.idx, offset))
|
||||||
if not self._items:
|
if not self._items:
|
||||||
raise IndexError("No items found!")
|
raise IndexError("No items found!")
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user