diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2021-05-19 13:52:28 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-19 13:52:28 -0600 |
commit | 8bdeaebe0c82590a135d5b815fa41ffda0b9a9dd (patch) | |
tree | dc8254aaf5d8fe8b0e2412eb548a6a042b58f8fe /numpy/lib/function_base.py | |
parent | 5bc6926d063866731cbe568366137f9e12182648 (diff) | |
download | numpy-8bdeaebe0c82590a135d5b815fa41ffda0b9a9dd.tar.gz |
BUG: Fix missing "np." in docstring examples.
Diffstat (limited to 'numpy/lib/function_base.py')
-rw-r--r-- | numpy/lib/function_base.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py index d1d33b321..651343a2c 100644 --- a/numpy/lib/function_base.py +++ b/numpy/lib/function_base.py @@ -1540,14 +1540,14 @@ def unwrap(p, discont=None, axis=-1, *, period=2*pi): array([ 0. , 0.78539816, 1.57079633, 5.49778714, 6.28318531]) # may vary >>> np.unwrap(phase) array([ 0. , 0.78539816, 1.57079633, -0.78539816, 0. ]) # may vary - >>> unwrap([0, 1, 2, -1, 0], period=4) + >>> np.unwrap([0, 1, 2, -1, 0], period=4) array([0, 1, 2, 3, 4]) - >>> unwrap([ 1, 2, 3, 4, 5, 6, 1, 2, 3], period=6) + >>> np.unwrap([ 1, 2, 3, 4, 5, 6, 1, 2, 3], period=6) array([1, 2, 3, 4, 5, 6, 7, 8, 9]) - >>> unwrap([2, 3, 4, 5, 2, 3, 4, 5], period=4) + >>> np.unwrap([2, 3, 4, 5, 2, 3, 4, 5], period=4) 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) + >>> np.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.]) |