diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2017-08-06 11:36:11 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-06 11:36:11 -0500 |
commit | f307cec3962926558b6387ebb4ab8d3f4ea3aa34 (patch) | |
tree | b902a845cb2b7a64f78aae7a10776c3daeb16e50 /numpy/core/function_base.py | |
parent | d6539868b353e211b4aaa3a683101e094b3ee1df (diff) | |
parent | 091b8c3b16d39d18f6921f9a17d06c1652b40dca (diff) | |
download | numpy-f307cec3962926558b6387ebb4ab8d3f4ea3aa34.tar.gz |
Merge pull request #9505 from eric-wieser/fix-issubdtype
BUG: issubdtype is inconsistent on types and dtypes
Diffstat (limited to 'numpy/core/function_base.py')
-rw-r--r-- | numpy/core/function_base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/function_base.py b/numpy/core/function_base.py index 7098b8b91..0415e16ac 100644 --- a/numpy/core/function_base.py +++ b/numpy/core/function_base.py @@ -339,7 +339,7 @@ def geomspace(start, stop, num=50, endpoint=True, dtype=None): # complex and another is negative and log would produce NaN otherwise start = start + (stop - stop) stop = stop + (start - start) - if _nx.issubdtype(dtype, complex): + if _nx.issubdtype(dtype, _nx.complexfloating): start = start + 0j stop = stop + 0j |