summaryrefslogtreecommitdiff
path: root/numpy/lib/function_base.py
diff options
context:
space:
mode:
authorEric Wieser <wieser.eric@gmail.com>2018-07-30 23:00:50 -0700
committerEric Wieser <wieser.eric@gmail.com>2018-07-30 23:02:10 -0700
commitaea9eb20898770a0b1b494a2bc646bd46afa5bab (patch)
treec558392cf6cc42c20660ad8a721cab39beb4183a /numpy/lib/function_base.py
parente7a0f7575c69222e0c0104939837c5c9eeae4380 (diff)
downloadnumpy-aea9eb20898770a0b1b494a2bc646bd46afa5bab.tar.gz
ENH: np.angle: Preserve subclasses
Diffstat (limited to 'numpy/lib/function_base.py')
-rw-r--r--numpy/lib/function_base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py
index 3e82f94db..81eedae94 100644
--- a/numpy/lib/function_base.py
+++ b/numpy/lib/function_base.py
@@ -1339,7 +1339,7 @@ def angle(z, deg=False):
45.0
"""
- z = asarray(z)
+ z = asanyarray(z)
if issubclass(z.dtype.type, _nx.complexfloating):
zimag = z.imag
zreal = z.real