diff options
Diffstat (limited to 'numpy/lib/function_base.py')
-rw-r--r-- | numpy/lib/function_base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py index a3db3494c..c291cf587 100644 --- a/numpy/lib/function_base.py +++ b/numpy/lib/function_base.py @@ -1715,7 +1715,7 @@ def gradient(f, *varargs, **kwargs): slice4 = [slice(None)]*N otype = f.dtype.char - if otype not in ['f', 'd', 'F', 'D', 'm', 'M']: + if otype not in ['f', 'd', 'F', 'D', 'm', 'M', 'e']: otype = 'd' # Difference of datetime64 elements results in timedelta64 |