diff options
author | Max Kellermeier <max.kellermeier@hotmail.de> | 2020-08-23 17:19:02 +0200 |
---|---|---|
committer | Max Kellermeier <max.kellermeier@hotmail.de> | 2020-08-23 17:20:55 +0200 |
commit | fde3fdb05eda00a4c84d6e52184c43928b320035 (patch) | |
tree | cdf31ec9576f0420df68f98d3985cb22f70177b2 /numpy/lib/function_base.py | |
parent | 8755c7f102363bee2572a08a5d9f83671af7957d (diff) | |
download | numpy-fde3fdb05eda00a4c84d6e52184c43928b320035.tar.gz |
Minor corrections in unwrapping docstrings
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
Diffstat (limited to 'numpy/lib/function_base.py')
-rw-r--r-- | numpy/lib/function_base.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py index 4f0377efe..7c819eaf3 100644 --- a/numpy/lib/function_base.py +++ b/numpy/lib/function_base.py @@ -1531,11 +1531,11 @@ def unwrap(p, discont=None, axis=-1, *, period=2*pi): >>> np.unwrap(phase) array([ 0. , 0.78539816, 1.57079633, -0.78539816, 0. ]) # may vary >>> unwrap([0, 1, 2, -1, 0], period=4) - array([0., 1., 2., 3., 4.]) + array([0, 1, 2, 3, 4]) >>> unwrap([ 1, 2, 3, 4, 5, 6, 1, 2, 3], period=6) - array([1., 2., 3., 4., 5., 6., 7., 8., 9.]) + array([1, 2, 3, 4, 5, 6, 7, 8, 9]) >>> unwrap([2, 3, 4, 5, 2, 3, 4, 5], period=4) - array([2., 3., 4., 5., 6., 7., 8., 9.]) + array([2, 3, 4, 5, 6, 7, 8, 9]) >>> 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., |