Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion prody/kdtree/kdtree.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"""This module defines :class:`KDTree` class for dealing with atomic coordinate
sets and handling periodic boundary conditions."""

from numbers import Number
from numpy import array, ndarray, concatenate, empty

from prody import LOGGER
Expand Down Expand Up @@ -190,7 +191,7 @@ def search(self, radius, center=None):
:arg center: a point in Cartesian coordinate system
:type center: :class:`numpy.ndarray`"""

if not isinstance(radius, (float, int)):
if not isinstance(radius, Number):
raise TypeError('radius must be a number')
if radius <= 0:
raise TypeError('radius must be a positive number')
Expand Down