summaryrefslogtreecommitdiff
path: root/numpy/lib
diff options
context:
space:
mode:
authorEric Wieser <wieser.eric@gmail.com>2020-09-14 10:16:37 +0100
committerGitHub <noreply@github.com>2020-09-14 10:16:37 +0100
commite6bea5f79c127a53a9252d8d3f51108815c60267 (patch)
treed4505a5181c12d9fa45a679f4ac1fb10a3dd01d1 /numpy/lib
parentdbb347295ac7414818ab5068abe31dc19a63563c (diff)
downloadnumpy-e6bea5f79c127a53a9252d8d3f51108815c60267.tar.gz
Apply suggestions from code review
Cleanup whitespace
Diffstat (limited to 'numpy/lib')
-rw-r--r--numpy/lib/function_base.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py
index d6dc7e5b9..ceb6148c5 100644
--- a/numpy/lib/function_base.py
+++ b/numpy/lib/function_base.py
@@ -1526,7 +1526,6 @@ def unwrap(p, discont=None, axis=-1, *, period=2*pi):
If the discontinuity in `p` is smaller than ``period/2``,
but larger than `discont`, no unwrapping is done because taking
the complement would only make the discontinuity larger.
-
Examples
--------
>>> phase = np.linspace(0, np.pi, num=5)
@@ -1544,8 +1543,8 @@ def unwrap(p, discont=None, axis=-1, *, period=2*pi):
>>> phase_deg = np.mod(np.linspace(0,720,19), 360) - 180
>>> unwrap(phase_deg, period=360)
array([-180., -140., -100., -60., -20., 20., 60., 100., 140.,
- 180., 220., 260., 300., 340., 380., 420., 460., 500.,
- 540.])
+ 180., 220., 260., 300., 340., 380., 420., 460., 500.,
+ 540.])
"""
p = asarray(p)
nd = p.ndim