Commit 1845fb4c authored by ihuszar's avatar ihuszar
Browse files

Amended empty-tuple check syntax in utils.

parent 1cf5baca
......@@ -230,7 +230,7 @@ def isnumber(x):
# Note: array-like scalars behave exactly like Python scalars!
elif isinstance(x, np.ndarray):
return (x.shape is ()) and \
return (x.shape == ()) and \
np.issubdtype(x.dtype, np.number)
# Most numbers are not arrays
else:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment