Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NEP 51: really distinguish np.float64(42.0) and 42.0 #60

Open
ev-br opened this issue Jul 3, 2023 · 3 comments
Open

NEP 51: really distinguish np.float64(42.0) and 42.0 #60

ev-br opened this issue Jul 3, 2023 · 3 comments
Labels
question Further information is requested some day

Comments

@ev-br
Copy link
Member

ev-br commented Jul 3, 2023

https://numpy.org/neps/nep-0051-scalar-representation.html

np.float64(3.0) is np.allclose to 3.0, so need to either special-case these, or roll our own allclose to block them.

@ev-br ev-br added the some day label Jul 3, 2023
@ev-br ev-br added the question Further information is requested label Jul 24, 2023
@ev-br
Copy link
Member Author

ev-br commented Apr 5, 2024

So far only two things stand out:

@ev-br ev-br changed the title NEP 51 NEP 51: really distinguish np.float64(42.0) and 42.0` Apr 8, 2024
@ev-br ev-br changed the title NEP 51: really distinguish np.float64(42.0) and 42.0` NEP 51: really distinguish np.float64(42.0) and 42.0 Aug 24, 2024
@ev-br
Copy link
Member Author

ev-br commented Aug 24, 2024

Applying

$ git diff
diff --git a/scipy_doctest/impl.py b/scipy_doctest/impl.py
index c70e99f..fdbbde3 100644
--- a/scipy_doctest/impl.py
+++ b/scipy_doctest/impl.py
@@ -368,6 +368,10 @@ class DTChecker(doctest.OutputChecker):
         if is_list_or_tuple and type(a_want) is not type(a_got):
             return False
 
+        # XXX
+        if isinstance(a_got, np.generic) and not want.startswith('np'):
+            return False
+
         # ... and defer to numpy
         strict = self.config.strict_check
         try:

and running on numpy commit numpy/numpy@6ffe3da3a8, generates

================= 537 failed, 2171 passed, 7 skipped in 18.29s =================

Invoking build prior to running tests:
$ /home/br/miniforge3/envs/numpy-dev/bin/python3.11 vendored-meson/meson/meson.py compile -C build
ninja: Entering directory `/home/br/repos/numpy/build'
[1/1] Generating numpy/generate-version with a custom command
Saving version to numpy/version.py
INFO: autodetecting backend as ninja
INFO: calculating backend command to run: /home/br/miniforge3/envs/numpy-dev/bin/ninja -C /home/br/repos/numpy/build
$ /home/br/miniforge3/envs/numpy-dev/bin/python3.11 vendored-meson/meson/meson.py install --only-changed -C build --destdir ../build-install
$ export PYTHONPATH="/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages"
$ /home/br/miniforge3/envs/numpy-dev/bin/python3.11 -P -c 'import numpy'
$ export PYTHONPATH="/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages"
$ cd /home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages
$ /home/br/miniforge3/envs/numpy-dev/bin/python3.11 -m pytest --rootdir=/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages numpy --doctest-modules --doctest-collect=api
============================= test session starts ==============================
platform linux -- Python 3.11.9, pytest-8.2.2, pluggy-1.5.0
rootdir: /home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages
configfile: ../../../../../pytest.ini
plugins: cov-5.0.0, xdist-3.6.1, hypothesis-6.103.2, scipy_doctest-1.5.dev0
collected 3962 items

numpy/init.py ........F....F.....................F..F..FFF.F...FF..F [ 1%]
.F..F.F...F.F.....F.FF....F.F.F........F....FF...F......F.FF.F.......... [ 4%]
..F.F...F....F...F...F.F..FFF..F.....F..FF......F..FF..F..F........F.F.F [ 7%]
......F.F....F......F.F.FF...............FF...F..FF.FF.....F.F.F...FF..F [ 9%]
...F.......F....F..................FF..F.FF..FFF.....F....F.....F....... [ 12%]
.F.F......F......F.F..F...FF....F..FF.F.F........F....F..F...sFF.....F.. [ 15%]
..........................F..F.F......................F........F. [ 17%]
numpy/char/init.py .......F..............FFF........................ [ 19%]
. [ 19%]
numpy/core/arrayprint.py ........ [ 19%]
numpy/core/defchararray.py .......F..............FFF.................... [ 21%]
..... [ 21%]
numpy/core/einsumfunc.py F. [ 21%]
numpy/core/fromnumeric.py FFFF......F.F.FFF....FF.....FF...FFF..F.F [ 23%]
numpy/core/function_base.py ... [ 23%]
numpy/core/getlimits.py .. [ 23%]
numpy/core/multiarray.py ...............s......F..F......F..F........... [ 25%]
F..F............................F....F.. [ 26%]
numpy/core/numeric.py ..........................F...................s... [ 28%]
.............FF.F......................F...FFFF......F.F.FFF....FF.....F [ 31%]
F...FFF..F.FFF.FF....FFF..FFF.F.FFF....FF.F......F.....FFFFF.F....F.FFFF [ 33%]
FFFF..F.F...F.F.F.FFFFF..F..F.....F.............F....................... [ 36%]
....................... [ 37%]
numpy/core/numerictypes.py ....F.............F.......................... [ 38%]
.... [ 39%]
numpy/core/records.py ....... [ 39%]
numpy/core/shape_base.py ........ [ 39%]
numpy/core/umath.py FF.FF....FFF..FFF.F.FFF....FF.F......F.....FFFFF.F.. [ 41%]
..F.FFFFFFFF..F.F...F.F.F.FFFFF..F..F. [ 42%]
numpy/ctypeslib.py ss.. [ 43%]
numpy/dtypes.py . [ 43%]
numpy/exceptions.py .. [ 43%]
numpy/fft/init.py .................. [ 43%]
numpy/fft/helper.py .... [ 43%]
numpy/lib/init.py .... [ 44%]
numpy/lib/array_utils.py .. [ 44%]
numpy/lib/introspect.py . [ 44%]
numpy/lib/mixins.py . [ 44%]
numpy/lib/recfunctions.py ............... [ 44%]
numpy/lib/scimath.py FFF.FFFFFF [ 45%]
numpy/linalg/init.py .........F......F.FF..F....F.FF. [ 46%]
numpy/linalg/linalg.py .........F......F.FF..F....F.FF. [ 47%]
numpy/ma/init.py ........FFFFFFF.....FF....F.....FFF...F...F...FF... [ 49%]
.F.....F.....F.....F.......FF...........FFFFF.......................FF.F [ 52%]
FF..F.........F...........FF...FFF...FF........F.......F................ [ 54%]
..F.............F [ 55%]
numpy/ma/core.py ........FFFFFFF.....FF....F.....FFF...F...F...FF....F.. [ 57%]
...F.....F.....F.......FF...........FFFFF.......................FF.FFF.. [ 60%]
F.........F...........FF...FFF...FF... [ 61%]
numpy/ma/extras.py .....F.......F..................F............. [ 63%]
numpy/ma/testutils.py ... [ 63%]
numpy/matlib.py ........F....F.....................F..F..FFF.F...FF..F.F [ 65%]
..F.F...F.F.....F.FF....F.F.F........F....FF...F......F.FF.F............ [ 67%]
F.F...F....F...F...F.F..FFF..F.....F..FF......F..FF..F..F........F.F.F.. [ 70%]
....F.F....F......F.F.FF...............FF...F..FF.FF.....F.F.F...FF..F.. [ 73%]
.F.......F....F..................FF..F.FF..FFF.....F....F.....F........F [ 75%]
.F......F......F.F..F...FF....F..FF.F.F........F....F..F...sFF.....F.... [ 78%]
........................F..F.F......................F........F... [ 80%]
numpy/matrixlib/init.py ........ [ 81%]
numpy/matrixlib/defmatrix.py ........ [ 81%]
numpy/polynomial/init.py .F.....F....F......F..........F.........F.. [ 83%]
..F......F....F......F....F. [ 84%]
numpy/polynomial/chebyshev.py ....F....................F..... [ 85%]
numpy/polynomial/hermite.py ....F......F...............F....F......... [ 86%]
numpy/polynomial/hermite_e.py ....F......F...............F....F [ 88%]
numpy/polynomial/laguerre.py ....F......F...............F....FFF....... [ 89%]
numpy/polynomial/legendre.py ....F...................F... [ 90%]
numpy/polynomial/polynomial.py ....FF.....FF.......F.....F....FFF..... [ 92%]
numpy/polynomial/polyutils.py ..... [ 92%]
numpy/random/init.py ....................................F.F........ [ 93%]
..................................F.F................................... [ 96%]
......F..F....F..... [ 97%]
numpy/rec/init.py ....... [ 97%]
numpy/strings/init.py ......F....FFF.............................. [ 99%]
numpy/testing/init.py .........s....... [ 99%]
numpy/typing/init.py ... [100%]

=================================== FAILURES ===================================
_____________________________ [doctest] numpy.fabs _____________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.fabs(-1)
Expected:
1.0
Got:
np.float64(1.0)

None:None: DocTestFailure
_____________________________ [doctest] numpy.fix ______________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.fix(3.14)
Expected:
3.0
Got:
np.float64(3.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
______________________ [doctest] numpy.bitwise_left_shift ______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.left_shift(5, 2)
Expected:
20
Got:
np.int64(20)

None:None: DocTestFailure
_____________________________ [doctest] numpy.var ______________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.var(a)
Expected:
1.25
Got:
np.float64(1.25)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
__________________________ [doctest] numpy.trapezoid ___________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.trapezoid([1, 2, 3])
Expected:
4.0
Got:
np.float64(4.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
___________________________ [doctest] numpy.nanprod ____________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.nanprod(1)
Expected:
1
Got:
np.int64(1)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
__________________________ [doctest] numpy.left_shift __________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.left_shift(5, 2)
Expected:
20
Got:
np.int64(20)

None:None: DocTestFailure
___________________________ [doctest] numpy.minimum ____________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.minimum(-np.inf, 1)
Expected:
-inf
Got:
np.float64(-inf)

None:None: DocTestFailure
____________________________ [doctest] numpy.trace _____________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.trace(np.eye(3))
Expected:
3.0
Got:
np.float64(3.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
___________________________ [doctest] numpy.polyint ____________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.polyder(P) == p
Expected:
True
Got:
np.True_

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
_____________________________ [doctest] numpy.cosh _____________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.cosh(0)
Expected:
1.0
Got:
np.float64(1.0)

None:None: DocTestFailure
____________________________ [doctest] numpy.nansum ____________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.nansum(1)
Expected:
1
Got:
np.int64(1)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
_____________________________ [doctest] numpy.sign _____________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.sign(0)
Expected:
0
Got:
np.int64(0)

None:None: DocTestFailure
__________________________ [doctest] numpy.conjugate ___________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.conjugate(1+2j)
Expected:
(1-2j)
Got:
np.complex128(1-2j)

None:None: DocTestFailure
_________________________ [doctest] numpy.nanquantile __________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.nanquantile(a, 0.5)
Expected:
3.0
Got:
np.float64(3.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
___________________________ [doctest] numpy.polyder ____________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> p2(2.)
Expected:
17.0
Got:
np.float64(17.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
_________________________ [doctest] numpy.logical_xor __________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.logical_xor(True, False)
Expected:
True
Got:
np.True_

None:None: DocTestFailure
____________________________ [doctest] numpy.divide ____________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.divide(2.0, 4.0)
Expected:
0.5
Got:
np.float64(0.5)

None:None: DocTestFailure
__________________________ [doctest] numpy.logaddexp ___________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> prob12
Expected:
-113.87649168120691
Got:
np.float64(-113.87649168120691)

None:None: DocTestFailure
________________________ [doctest] numpy.cumulative_sum ________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.cumulative_sum(c)[-1]
Expected:
1000000.0050045159
Got:
np.float64(1000000.0050045159)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
____________________________ [doctest] numpy.nanvar ____________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.nanvar(a)
Expected:
1.5555555555555554
Got:
np.float64(1.5555555555555554)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
___________________________ [doctest] numpy.isfinite ___________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.isfinite(1)
Expected:
True
Got:
np.True_

None:None: DocTestFailure
____________________________ [doctest] numpy.matmul ____________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.matmul(a, b)[0, 1, 1]
Expected:
98
Got:
np.int64(98)

None:None: DocTestFailure
____________________________ [doctest] numpy.isinf _____________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.isinf(np.inf)
Expected:
True
Got:
np.True_

None:None: DocTestFailure
__________________________ [doctest] numpy.nanargmax ___________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.argmax(a)
Expected:
0
Got:
np.int64(0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
_____________________________ [doctest] numpy.dot ______________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.dot(3, 4)
Expected:
12
Got:
np.int64(12)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
_____________________________ [doctest] numpy.sum ______________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.sum([])
Expected:
0.0
Got:
np.float64(0.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
___________________________ [doctest] numpy.nanmean ____________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.nanmean(a)
Expected:
2.6666666666666665
Got:
np.float64(2.6666666666666665)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
_____________________________ [doctest] numpy.str_ _____________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> s
Expected:
'abc'
Got:
np.str_('abc')

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
___________________________ [doctest] numpy.rad2deg ____________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.rad2deg(np.pi/2)
Expected:
90.0
Got:
np.float64(90.0)

None:None: DocTestFailure
_____________________________ [doctest] numpy.min ______________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.min(a) # Minimum of the flattened array
Expected:
0
Got:
np.int64(0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
___________________________ [doctest] numpy.polyval ____________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.polyval([3,0,1], 5) # 3 * 52 + 0 * 51 + 1
Expected:
76
Got:
np.int64(76)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
____________________________ [doctest] numpy.flipud ____________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.all(np.flipud(A) == A[::-1,...])
Expected:
True
Got:
np.True_

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
___________________________ [doctest] numpy.bincount ___________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.bincount(x).size == np.amax(x)+1
Expected:
True
Got:
np.True_

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
_________________________ [doctest] numpy.ufunc.reduce _________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.multiply.reduce([2,3,5])
Expected:
30
Got:
np.int64(30)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
_____________________________ [doctest] numpy.vdot _____________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.vdot(a, b)
Expected:
(70-8j)
Got:
np.complex128(70-8j)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
____________________________ [doctest] numpy.isnan _____________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.isnan(np.nan)
Expected:
True
Got:
np.True_

None:None: DocTestFailure
_____________________________ [doctest] numpy.lcm ______________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.lcm(12, 20)
Expected:
60
Got:
np.int64(60)

None:None: DocTestFailure
__________________________ [doctest] numpy.reciprocal __________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.reciprocal(2.)
Expected:
0.5
Got:
np.float64(0.5)

None:None: DocTestFailure
____________________________ [doctest] numpy.isnat _____________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.isnat(np.datetime64("NaT"))
Expected:
True
Got:
np.True_

None:None: DocTestFailure
___________________________ [doctest] numpy.signbit ____________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.signbit(-1.2)
Expected:
True
Got:
np.True_

None:None: DocTestFailure
_________________________ [doctest] numpy.bitwise_and __________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.bitwise_and(13, 17)
Expected:
1
Got:
np.int64(1)

None:None: DocTestFailure
___________________________ [doctest] numpy.maximum ____________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.maximum(np.inf, 1)
Expected:
inf
Got:
np.float64(inf)

None:None: DocTestFailure
___________________________ [doctest] numpy.spacing ____________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.spacing(1) == np.finfo(np.float64).eps
Expected:
True
Got:
np.True_

None:None: DocTestFailure
_____________________________ [doctest] numpy.std ______________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.std(a, where=[[True], [True], [False]])
Expected:
2.0
Got:
np.float64(2.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
___________________________ [doctest] numpy.arccosh ____________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.arccosh(1)
Expected:
0.0
Got:
np.float64(0.0)

None:None: DocTestFailure
__________________________ [doctest] numpy.bitwise_or __________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.bitwise_or(13, 16)
Expected:
29
Got:
np.int64(29)

None:None: DocTestFailure
_________________________ [doctest] numpy.logical_not __________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.logical_not(3)
Expected:
False
Got:
np.False_

None:None: DocTestFailure
________________________ [doctest] numpy.nanpercentile _________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.nanpercentile(a, 50)
Expected:
3.0
Got:
np.float64(3.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
____________________________ [doctest] numpy.acosh _____________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.arccosh(1)
Expected:
0.0
Got:
np.float64(0.0)

None:None: DocTestFailure
_____________________________ [doctest] numpy.any ______________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.any([[True, False], [True, True]])
Expected:
True
Got:
np.True_

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
____________________________ [doctest] numpy.poly1d ____________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> p(0.5)
Expected:
4.25
Got:
np.float64(4.25)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
____________________________ [doctest] numpy.arcsin ____________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.arcsin(1) # pi/2
Expected:
1.5707963267948966
Got:
np.float64(1.5707963267948966)

None:None: DocTestFailure
_____________________________ [doctest] numpy.max ______________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.max(a) # Maximum of the flattened array
Expected:
3
Got:
np.int64(3)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
___________________________ [doctest] numpy.average ____________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.average(data)
Expected:
2.5
Got:
np.float64(2.5)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
_____________________________ [doctest] numpy.copy _____________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> x[0] == y[0]
Expected:
True
Got:
np.True_

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
_____________________________ [doctest] numpy.flip _____________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.all(np.flip(A,2) == A[:,:,::-1,...])
Expected:
True
Got:
np.True_

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
___________________________ [doctest] numpy.multiply ___________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.multiply(2.0, 4.0)
Expected:
8.0
Got:
np.float64(8.0)

None:None: DocTestFailure
__________________________ [doctest] numpy.logical_or __________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.logical_or(True, False)
Expected:
True
Got:
np.True_

None:None: DocTestFailure
____________________________ [doctest] numpy.cumsum ____________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> b.cumsum()[-1]
Expected:
1000000.0050045159
Got:
np.float64(1000000.0050045159)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
____________________________ [doctest] numpy.expm1 _____________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.expm1(1e-10)
Expected:
1.00000000005e-10
Got:
np.float64(1.00000000005e-10)

None:None: DocTestFailure
_____________________________ [doctest] numpy.sin ______________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.sin(np.pi/2.)
Expected:
1.0
Got:
np.float64(1.0)

None:None: DocTestFailure
_____________________________ [doctest] numpy.prod _____________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.prod([])
Expected:
1.0
Got:
np.float64(1.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
____________________________ [doctest] numpy.round _____________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.round(56294995342131.5, 3)
Expected:
56294995342131.51
Got:
np.float64(56294995342131.51)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
____________________________ [doctest] numpy.nanmin ____________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.nanmin(a)
Expected:
1.0
Got:
np.float64(1.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
_____________________________ [doctest] numpy.gcd ______________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.gcd(12, 20)
Expected:
4
Got:
np.int64(4)

None:None: DocTestFailure
_________________________ [doctest] numpy.busday_count _________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> # Number of weekdays in January 2011
??? ... np.busday_count('2011-01', '2011-02')
Expected:
21
Got:
np.int64(21)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
__________________________ [doctest] numpy.nan_to_num __________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.nan_to_num(np.inf)
Expected:
1.7976931348623157e+308
Got:
np.float64(1.7976931348623157e+308)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
____________________________ [doctest] numpy.argmin ____________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.argmin(a)
Expected:
0
Got:
np.int64(0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
____________________________ [doctest] numpy.einsum ____________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.einsum('ii', a)
Expected:
60
Got:
np.int64(60)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
____________________________ [doctest] numpy.fliplr ____________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.all(np.fliplr(A) == A[:,::-1,...])
Expected:
True
Got:
np.True_

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
__________________________ [doctest] numpy.nextafter ___________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.nextafter(1, 2) == eps + 1
Expected:
True
Got:
np.True_

None:None: DocTestFailure
____________________________ [doctest] numpy.interp ____________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.interp(2.5, xp, fp)
Expected:
1.0
Got:
np.float64(1.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
_________________________ [doctest] numpy.true_divide __________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.divide(2.0, 4.0)
Expected:
0.5
Got:
np.float64(0.5)

None:None: DocTestFailure
_____________________________ [doctest] numpy.add ______________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.add(1.0, 4.0)
Expected:
5.0
Got:
np.float64(5.0)

None:None: DocTestFailure
__________________________ [doctest] numpy.logaddexp2 __________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> 2**prob12
Expected:
3.4999999999999914e-50
Got:
np.float64(3.4999999999999914e-50)

None:None: DocTestFailure
_____________________________ [doctest] numpy.sinh _____________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.sinh(0)
Expected:
0.0
Got:
np.float64(0.0)

None:None: DocTestFailure
___________________________ [doctest] numpy.isposinf ___________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.isposinf(np.inf)
Expected:
True
Got:
np.True_

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
___________________________ [doctest] numpy.copysign ___________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.copysign(1.3, -1)
Expected:
-1.3
Got:
np.float64(-1.3)

None:None: DocTestFailure
____________________________ [doctest] numpy.log1p _____________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.log1p(1e-99)
Expected:
1e-99
Got:
np.float64(1e-99)

None:None: DocTestFailure
_____________________________ [doctest] numpy.mean _____________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.mean(a)
Expected:
2.5
Got:
np.float64(2.5)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
_____________________________ [doctest] numpy.abs ______________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.absolute(1.2 + 1j)
Expected:
1.5620499351813308
Got:
np.float64(1.5620499351813308)

None:None: DocTestFailure
_____________________________ [doctest] numpy.conj _____________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.conjugate(1+2j)
Expected:
(1-2j)
Got:
np.complex128(1-2j)

None:None: DocTestFailure
_____________________ [doctest] numpy.bitwise_right_shift ______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.right_shift(10, 1)
Expected:
5
Got:
np.int64(5)

None:None: DocTestFailure
______________________ [doctest] numpy.ravel_multi_index _______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.ravel_multi_index((3,1,4,1), (6,7,8,9))
Expected:
1621
Got:
np.int64(1621)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
_________________________ [doctest] numpy.floor_divide _________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.floor_divide(7,3)
Expected:
2
Got:
np.int64(2)

None:None: DocTestFailure
____________________________ [doctest] numpy.inner _____________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.inner(a, b)
Expected:
2
Got:
np.int64(2)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
__________________________ [doctest] numpy.histogram ___________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> hist.sum()
Expected:
2.4999999999999996
Got:
np.float64(2.4999999999999996)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
__________________________ [doctest] numpy.nanargmin ___________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.argmin(a)
Expected:
0
Got:
np.int64(0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
___________________________ [doctest] numpy.deg2rad ____________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.deg2rad(180)
Expected:
3.1415926535897931
Got:
np.float64(3.141592653589793)

None:None: DocTestFailure
_____________________________ [doctest] numpy.all ______________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.all([[True,False],[True,True]])
Expected:
False
Got:
np.False_

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
____________________________ [doctest] numpy.nanstd ____________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.nanstd(a)
Expected:
1.247219128924647
Got:
np.float64(1.247219128924647)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
___________________________ [doctest] numpy.isneginf ___________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.isneginf(-np.inf)
Expected:
True
Got:
np.True_

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
_____________________________ [doctest] numpy.kron _____________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> c[K] == a[I]*b[J]
Expected:
True
Got:
np.True_

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
_________________________ [doctest] numpy.searchsorted _________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.searchsorted([11,12,13,14,15], 13)
Expected:
2
Got:
np.int64(2)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
___________________________ [doctest] numpy.degrees ____________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.all(r == out)
Expected:
True
Got:
np.True_

None:None: DocTestFailure
___________________________ [doctest] numpy.subtract ___________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.subtract(1.0, 4.0)
Expected:
-3.0
Got:
np.float64(-3.0)

None:None: DocTestFailure
__________________________ [doctest] numpy.percentile __________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.percentile(a, 50)
Expected:
3.5
Got:
np.float64(3.5)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
_____________________________ [doctest] numpy.asin _____________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.arcsin(1) # pi/2
Expected:
1.5707963267948966
Got:
np.float64(1.5707963267948966)

None:None: DocTestFailure
_________________________ [doctest] numpy.bitwise_xor __________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.bitwise_xor(13, 17)
Expected:
28
Got:
np.int64(28)

None:None: DocTestFailure
__________________________ [doctest] numpy.nanmedian ___________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.nanmedian(a)
Expected:
3.0
Got:
np.float64(3.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
___________________________ [doctest] numpy.quantile ___________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.quantile(a, 0.5)
Expected:
3.5
Got:
np.float64(3.5)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
_________________________ [doctest] numpy.logical_and __________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.logical_and(True, False)
Expected:
False
Got:
np.False_

None:None: DocTestFailure
____________________________ [doctest] numpy.angle _____________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.angle(1+1j, deg=True) # in degrees
Expected:
45.0
Got:
np.float64(45.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
_____________________________ [doctest] numpy.ptp ______________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.ptp(x)
Expected:
10
Got:
np.int64(10)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
_________________________ [doctest] numpy.right_shift __________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.right_shift(10, 1)
Expected:
5
Got:
np.int64(5)

None:None: DocTestFailure
____________________________ [doctest] numpy.nanmax ____________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.nanmax(a)
Expected:
3.0
Got:
np.float64(3.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
___________________________ [doctest] numpy.squeeze ____________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.squeeze(x)[()]
Expected:
1234
Got:
np.int64(1234)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
____________________________ [doctest] numpy.argmax ____________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.argmax(a)
Expected:
5
Got:
np.int64(5)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
___________________________ [doctest] numpy.absolute ___________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.absolute(1.2 + 1j)
Expected:
1.5620499351813308
Got:
np.float64(1.5620499351813308)

None:None: DocTestFailure
___________________________ [doctest] numpy.char.add ___________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.add(1.0, 4.0)
Expected:
5.0
Got:
np.float64(5.0)

None:None: DocTestFailure
_________________________ [doctest] numpy.char.islower _________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.strings.islower("GHC")
Expected:
array(False)
Got:
np.False_

None:None: DocTestFailure
_________________________ [doctest] numpy.char.istitle _________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.strings.istitle("Numpy Is Great")
Expected:
array(True)
Got:
np.True_

None:None: DocTestFailure
_________________________ [doctest] numpy.char.isupper _________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.strings.isupper("GHC")
Expected:
array(True)
Got:
np.True_

None:None: DocTestFailure
____________________ [doctest] numpy.core.defchararray.add _____________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.add(1.0, 4.0)
Expected:
5.0
Got:
np.float64(5.0)

None:None: DocTestFailure
__________________ [doctest] numpy.core.defchararray.islower ___________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.strings.islower("GHC")
Expected:
array(False)
Got:
np.False_

None:None: DocTestFailure
__________________ [doctest] numpy.core.defchararray.istitle ___________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.strings.istitle("Numpy Is Great")
Expected:
array(True)
Got:
np.True_

None:None: DocTestFailure
__________________ [doctest] numpy.core.defchararray.isupper ___________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.strings.isupper("GHC")
Expected:
array(True)
Got:
np.True_

None:None: DocTestFailure
____________________ [doctest] numpy.core.einsumfunc.einsum ____________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.einsum('ii', a)
Expected:
60
Got:
np.int64(60)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
_____________________ [doctest] numpy.core.fromnumeric.all _____________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.all([[True,False],[True,True]])
Expected:
False
Got:
np.False_

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
_____________________ [doctest] numpy.core.fromnumeric.any _____________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.any([[True, False], [True, True]])
Expected:
True
Got:
np.True_

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
___________________ [doctest] numpy.core.fromnumeric.argmax ____________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.argmax(a)
Expected:
5
Got:
np.int64(5)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
___________________ [doctest] numpy.core.fromnumeric.argmin ____________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.argmin(a)
Expected:
0
Got:
np.int64(0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
___________________ [doctest] numpy.core.fromnumeric.cumsum ____________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> b.cumsum()[-1]
Expected:
1000000.0050045159
Got:
np.float64(1000000.0050045159)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
_______________ [doctest] numpy.core.fromnumeric.cumulative_sum ________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.cumulative_sum(c)[-1]
Expected:
1000000.0050045159
Got:
np.float64(1000000.0050045159)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
____________________ [doctest] numpy.core.fromnumeric.mean _____________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.mean(a)
Expected:
2.5
Got:
np.float64(2.5)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
_____________________ [doctest] numpy.core.fromnumeric.max _____________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.max(a) # Maximum of the flattened array
Expected:
3
Got:
np.int64(3)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
_____________________ [doctest] numpy.core.fromnumeric.min _____________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.min(a) # Minimum of the flattened array
Expected:
0
Got:
np.int64(0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
____________________ [doctest] numpy.core.fromnumeric.prod _____________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.prod([])
Expected:
1.0
Got:
np.float64(1.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
_____________________ [doctest] numpy.core.fromnumeric.ptp _____________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.ptp(x)
Expected:
10
Got:
np.int64(10)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
____________________ [doctest] numpy.core.fromnumeric.round ____________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.round(56294995342131.5, 3)
Expected:
56294995342131.51
Got:
np.float64(56294995342131.51)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
________________ [doctest] numpy.core.fromnumeric.searchsorted _________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.searchsorted([11,12,13,14,15], 13)
Expected:
2
Got:
np.int64(2)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
___________________ [doctest] numpy.core.fromnumeric.squeeze ___________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.squeeze(x)[()]
Expected:
1234
Got:
np.int64(1234)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
_____________________ [doctest] numpy.core.fromnumeric.std _____________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.std(a, where=[[True], [True], [False]])
Expected:
2.0
Got:
np.float64(2.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
_____________________ [doctest] numpy.core.fromnumeric.sum _____________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.sum([])
Expected:
0.0
Got:
np.float64(0.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
____________________ [doctest] numpy.core.fromnumeric.trace ____________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.trace(np.eye(3))
Expected:
3.0
Got:
np.float64(3.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
_____________________ [doctest] numpy.core.fromnumeric.var _____________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.var(a)
Expected:
1.25
Got:
np.float64(1.25)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
___________________ [doctest] numpy.core.multiarray.bincount ___________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.bincount(x).size == np.amax(x)+1
Expected:
True
Got:
np.True_

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
_________________ [doctest] numpy.core.multiarray.busday_count _________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> # Number of weekdays in January 2011
??? ... np.busday_count('2011-01', '2011-02')
Expected:
21
Got:
np.int64(21)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
___________________ [doctest] numpy.core.multiarray.c_einsum ___________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.einsum('ii', a)
Expected:
60
Got:
np.int64(60)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/_core/_multiarray_umath.cpython-311-x86_64-linux-gnu.so:None: DocTestFailure
_____________________ [doctest] numpy.core.multiarray.dot ______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.dot(3, 4)
Expected:
12
Got:
np.int64(12)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
____________________ [doctest] numpy.core.multiarray.inner _____________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.inner(a, b)
Expected:
2
Got:
np.int64(2)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
____________________ [doctest] numpy.core.multiarray.matmul ____________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.matmul(a, b)[0, 1, 1]
Expected:
98
Got:
np.int64(98)

None:None: DocTestFailure
______________ [doctest] numpy.core.multiarray.ravel_multi_index _______________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.ravel_multi_index((3,1,4,1), (6,7,8,9))
Expected:
1621
Got:
np.int64(1621)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
_____________________ [doctest] numpy.core.multiarray.vdot _____________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.vdot(a, b)
Expected:
(70-8j)
Got:
np.complex128(70-8j)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
__________________ [doctest] numpy.core.numeric.ufunc.reduce ___________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.multiply.reduce([2,3,5])
Expected:
30
Got:
np.int64(30)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
______________________ [doctest] numpy.core.numeric.inner ______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.inner(a, b)
Expected:
2
Got:
np.int64(2)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
_______________________ [doctest] numpy.core.numeric.dot _______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.dot(3, 4)
Expected:
12
Got:
np.int64(12)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
______________________ [doctest] numpy.core.numeric.vdot _______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.vdot(a, b)
Expected:
(70-8j)
Got:
np.complex128(70-8j)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
_____________________ [doctest] numpy.core.numeric.matmul ______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.matmul(a, b)[0, 1, 1]
Expected:
98
Got:
np.int64(98)

None:None: DocTestFailure
_______________________ [doctest] numpy.core.numeric.all _______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.all([[True,False],[True,True]])
Expected:
False
Got:
np.False_

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
_______________________ [doctest] numpy.core.numeric.any _______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.any([[True, False], [True, True]])
Expected:
True
Got:
np.True_

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
_____________________ [doctest] numpy.core.numeric.argmax ______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.argmax(a)
Expected:
5
Got:
np.int64(5)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
_____________________ [doctest] numpy.core.numeric.argmin ______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.argmin(a)
Expected:
0
Got:
np.int64(0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
_____________________ [doctest] numpy.core.numeric.cumsum ______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> b.cumsum()[-1]
Expected:
1000000.0050045159
Got:
np.float64(1000000.0050045159)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
_________________ [doctest] numpy.core.numeric.cumulative_sum __________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.cumulative_sum(c)[-1]
Expected:
1000000.0050045159
Got:
np.float64(1000000.0050045159)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
______________________ [doctest] numpy.core.numeric.mean _______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.mean(a)
Expected:
2.5
Got:
np.float64(2.5)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
_______________________ [doctest] numpy.core.numeric.max _______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.max(a) # Maximum of the flattened array
Expected:
3
Got:
np.int64(3)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
_______________________ [doctest] numpy.core.numeric.min _______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.min(a) # Minimum of the flattened array
Expected:
0
Got:
np.int64(0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
______________________ [doctest] numpy.core.numeric.prod _______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.prod([])
Expected:
1.0
Got:
np.float64(1.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
_______________________ [doctest] numpy.core.numeric.ptp _______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.ptp(x)
Expected:
10
Got:
np.int64(10)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
______________________ [doctest] numpy.core.numeric.round ______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.round(56294995342131.5, 3)
Expected:
56294995342131.51
Got:
np.float64(56294995342131.51)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
__________________ [doctest] numpy.core.numeric.searchsorted ___________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.searchsorted([11,12,13,14,15], 13)
Expected:
2
Got:
np.int64(2)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
_____________________ [doctest] numpy.core.numeric.squeeze _____________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.squeeze(x)[()]
Expected:
1234
Got:
np.int64(1234)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
_______________________ [doctest] numpy.core.numeric.std _______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.std(a, where=[[True], [True], [False]])
Expected:
2.0
Got:
np.float64(2.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
_______________________ [doctest] numpy.core.numeric.sum _______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.sum([])
Expected:
0.0
Got:
np.float64(0.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
______________________ [doctest] numpy.core.numeric.trace ______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.trace(np.eye(3))
Expected:
3.0
Got:
np.float64(3.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
_______________________ [doctest] numpy.core.numeric.var _______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.var(a)
Expected:
1.25
Got:
np.float64(1.25)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
____________________ [doctest] numpy.core.numeric.absolute _____________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.absolute(1.2 + 1j)
Expected:
1.5620499351813308
Got:
np.float64(1.5620499351813308)

None:None: DocTestFailure
_______________________ [doctest] numpy.core.numeric.add _______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.add(1.0, 4.0)
Expected:
5.0
Got:
np.float64(5.0)

None:None: DocTestFailure
_____________________ [doctest] numpy.core.numeric.arccosh _____________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.arccosh(1)
Expected:
0.0
Got:
np.float64(0.0)

None:None: DocTestFailure
_____________________ [doctest] numpy.core.numeric.arcsin ______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.arcsin(1) # pi/2
Expected:
1.5707963267948966
Got:
np.float64(1.5707963267948966)

None:None: DocTestFailure
___________________ [doctest] numpy.core.numeric.bitwise_and ___________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.bitwise_and(13, 17)
Expected:
1
Got:
np.int64(1)

None:None: DocTestFailure
___________________ [doctest] numpy.core.numeric.bitwise_or ____________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.bitwise_or(13, 16)
Expected:
29
Got:
np.int64(29)

None:None: DocTestFailure
___________________ [doctest] numpy.core.numeric.bitwise_xor ___________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.bitwise_xor(13, 17)
Expected:
28
Got:
np.int64(28)

None:None: DocTestFailure
______________________ [doctest] numpy.core.numeric.conj _______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.conjugate(1+2j)
Expected:
(1-2j)
Got:
np.complex128(1-2j)

None:None: DocTestFailure
____________________ [doctest] numpy.core.numeric.conjugate ____________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.conjugate(1+2j)
Expected:
(1-2j)
Got:
np.complex128(1-2j)

None:None: DocTestFailure
____________________ [doctest] numpy.core.numeric.copysign _____________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.copysign(1.3, -1)
Expected:
-1.3
Got:
np.float64(-1.3)

None:None: DocTestFailure
______________________ [doctest] numpy.core.numeric.cosh _______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.cosh(0)
Expected:
1.0
Got:
np.float64(1.0)

None:None: DocTestFailure
_____________________ [doctest] numpy.core.numeric.deg2rad _____________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.deg2rad(180)
Expected:
3.1415926535897931
Got:
np.float64(3.141592653589793)

None:None: DocTestFailure
_____________________ [doctest] numpy.core.numeric.degrees _____________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.all(r == out)
Expected:
True
Got:
np.True_

None:None: DocTestFailure
_____________________ [doctest] numpy.core.numeric.divide ______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.divide(2.0, 4.0)
Expected:
0.5
Got:
np.float64(0.5)

None:None: DocTestFailure
______________________ [doctest] numpy.core.numeric.expm1 ______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.expm1(1e-10)
Expected:
1.00000000005e-10
Got:
np.float64(1.00000000005e-10)

None:None: DocTestFailure
______________________ [doctest] numpy.core.numeric.fabs _______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.fabs(-1)
Expected:
1.0
Got:
np.float64(1.0)

None:None: DocTestFailure
__________________ [doctest] numpy.core.numeric.floor_divide ___________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.floor_divide(7,3)
Expected:
2
Got:
np.int64(2)

None:None: DocTestFailure
_______________________ [doctest] numpy.core.numeric.gcd _______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.gcd(12, 20)
Expected:
4
Got:
np.int64(4)

None:None: DocTestFailure
____________________ [doctest] numpy.core.numeric.isfinite _____________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.isfinite(1)
Expected:
True
Got:
np.True_

None:None: DocTestFailure
______________________ [doctest] numpy.core.numeric.isinf ______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.isinf(np.inf)
Expected:
True
Got:
np.True_

None:None: DocTestFailure
______________________ [doctest] numpy.core.numeric.isnan ______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.isnan(np.nan)
Expected:
True
Got:
np.True_

None:None: DocTestFailure
______________________ [doctest] numpy.core.numeric.isnat ______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.isnat(np.datetime64("NaT"))
Expected:
True
Got:
np.True_

None:None: DocTestFailure
_______________________ [doctest] numpy.core.numeric.lcm _______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.lcm(12, 20)
Expected:
60
Got:
np.int64(60)

None:None: DocTestFailure
___________________ [doctest] numpy.core.numeric.left_shift ____________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.left_shift(5, 2)
Expected:
20
Got:
np.int64(20)

None:None: DocTestFailure
______________________ [doctest] numpy.core.numeric.log1p ______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.log1p(1e-99)
Expected:
1e-99
Got:
np.float64(1e-99)

None:None: DocTestFailure
____________________ [doctest] numpy.core.numeric.logaddexp ____________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> prob12
Expected:
-113.87649168120691
Got:
np.float64(-113.87649168120691)

None:None: DocTestFailure
___________________ [doctest] numpy.core.numeric.logaddexp2 ____________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> 2**prob12
Expected:
3.4999999999999914e-50
Got:
np.float64(3.4999999999999914e-50)

None:None: DocTestFailure
___________________ [doctest] numpy.core.numeric.logical_and ___________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.logical_and(True, False)
Expected:
False
Got:
np.False_

None:None: DocTestFailure
___________________ [doctest] numpy.core.numeric.logical_not ___________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.logical_not(3)
Expected:
False
Got:
np.False_

None:None: DocTestFailure
___________________ [doctest] numpy.core.numeric.logical_or ____________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.logical_or(True, False)
Expected:
True
Got:
np.True_

None:None: DocTestFailure
___________________ [doctest] numpy.core.numeric.logical_xor ___________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.logical_xor(True, False)
Expected:
True
Got:
np.True_

None:None: DocTestFailure
_____________________ [doctest] numpy.core.numeric.maximum _____________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.maximum(np.inf, 1)
Expected:
inf
Got:
np.float64(inf)

None:None: DocTestFailure
_____________________ [doctest] numpy.core.numeric.minimum _____________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.minimum(-np.inf, 1)
Expected:
-inf
Got:
np.float64(-inf)

None:None: DocTestFailure
____________________ [doctest] numpy.core.numeric.multiply _____________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.multiply(2.0, 4.0)
Expected:
8.0
Got:
np.float64(8.0)

None:None: DocTestFailure
____________________ [doctest] numpy.core.numeric.nextafter ____________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.nextafter(1, 2) == eps + 1
Expected:
True
Got:
np.True_

None:None: DocTestFailure
_____________________ [doctest] numpy.core.numeric.rad2deg _____________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.rad2deg(np.pi/2)
Expected:
90.0
Got:
np.float64(90.0)

None:None: DocTestFailure
___________________ [doctest] numpy.core.numeric.reciprocal ____________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.reciprocal(2.)
Expected:
0.5
Got:
np.float64(0.5)

None:None: DocTestFailure
___________________ [doctest] numpy.core.numeric.right_shift ___________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.right_shift(10, 1)
Expected:
5
Got:
np.int64(5)

None:None: DocTestFailure
______________________ [doctest] numpy.core.numeric.sign _______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.sign(0)
Expected:
0
Got:
np.int64(0)

None:None: DocTestFailure
_____________________ [doctest] numpy.core.numeric.signbit _____________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.signbit(-1.2)
Expected:
True
Got:
np.True_

None:None: DocTestFailure
_______________________ [doctest] numpy.core.numeric.sin _______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.sin(np.pi/2.)
Expected:
1.0
Got:
np.float64(1.0)

None:None: DocTestFailure
______________________ [doctest] numpy.core.numeric.sinh _______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.sinh(0)
Expected:
0.0
Got:
np.float64(0.0)

None:None: DocTestFailure
_____________________ [doctest] numpy.core.numeric.spacing _____________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.spacing(1) == np.finfo(np.float64).eps
Expected:
True
Got:
np.True_

None:None: DocTestFailure
____________________ [doctest] numpy.core.numeric.subtract _____________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.subtract(1.0, 4.0)
Expected:
-3.0
Got:
np.float64(-3.0)

None:None: DocTestFailure
___________________ [doctest] numpy.core.numeric.true_divide ___________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.divide(2.0, 4.0)
Expected:
0.5
Got:
np.float64(0.5)

None:None: DocTestFailure
__________________ [doctest] numpy.core.numeric.busday_count ___________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> # Number of weekdays in January 2011
??? ... np.busday_count('2011-01', '2011-02')
Expected:
21
Got:
np.int64(21)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
______________________ [doctest] numpy.core.numeric.str_ _______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> s
Expected:
'abc'
Got:
np.str_('abc')

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
________________ [doctest] numpy.core.numerictypes.busday_count ________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> # Number of weekdays in January 2011
??? ... np.busday_count('2011-01', '2011-02')
Expected:
21
Got:
np.int64(21)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
____________________ [doctest] numpy.core.numerictypes.str_ ____________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> s
Expected:
'abc'
Got:
np.str_('abc')

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
_____________________ [doctest] numpy.core.umath.absolute ______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.absolute(1.2 + 1j)
Expected:
1.5620499351813308
Got:
np.float64(1.5620499351813308)

None:None: DocTestFailure
________________________ [doctest] numpy.core.umath.add ________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.add(1.0, 4.0)
Expected:
5.0
Got:
np.float64(5.0)

None:None: DocTestFailure
______________________ [doctest] numpy.core.umath.arccosh ______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.arccosh(1)
Expected:
0.0
Got:
np.float64(0.0)

None:None: DocTestFailure
______________________ [doctest] numpy.core.umath.arcsin _______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.arcsin(1) # pi/2
Expected:
1.5707963267948966
Got:
np.float64(1.5707963267948966)

None:None: DocTestFailure
____________________ [doctest] numpy.core.umath.bitwise_and ____________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.bitwise_and(13, 17)
Expected:
1
Got:
np.int64(1)

None:None: DocTestFailure
____________________ [doctest] numpy.core.umath.bitwise_or _____________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.bitwise_or(13, 16)
Expected:
29
Got:
np.int64(29)

None:None: DocTestFailure
____________________ [doctest] numpy.core.umath.bitwise_xor ____________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.bitwise_xor(13, 17)
Expected:
28
Got:
np.int64(28)

None:None: DocTestFailure
_______________________ [doctest] numpy.core.umath.conj ________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.conjugate(1+2j)
Expected:
(1-2j)
Got:
np.complex128(1-2j)

None:None: DocTestFailure
_____________________ [doctest] numpy.core.umath.conjugate _____________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.conjugate(1+2j)
Expected:
(1-2j)
Got:
np.complex128(1-2j)

None:None: DocTestFailure
_____________________ [doctest] numpy.core.umath.copysign ______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.copysign(1.3, -1)
Expected:
-1.3
Got:
np.float64(-1.3)

None:None: DocTestFailure
_______________________ [doctest] numpy.core.umath.cosh ________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.cosh(0)
Expected:
1.0
Got:
np.float64(1.0)

None:None: DocTestFailure
______________________ [doctest] numpy.core.umath.deg2rad ______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.deg2rad(180)
Expected:
3.1415926535897931
Got:
np.float64(3.141592653589793)

None:None: DocTestFailure
______________________ [doctest] numpy.core.umath.degrees ______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.all(r == out)
Expected:
True
Got:
np.True_

None:None: DocTestFailure
______________________ [doctest] numpy.core.umath.divide _______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.divide(2.0, 4.0)
Expected:
0.5
Got:
np.float64(0.5)

None:None: DocTestFailure
_______________________ [doctest] numpy.core.umath.expm1 _______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.expm1(1e-10)
Expected:
1.00000000005e-10
Got:
np.float64(1.00000000005e-10)

None:None: DocTestFailure
_______________________ [doctest] numpy.core.umath.fabs ________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.fabs(-1)
Expected:
1.0
Got:
np.float64(1.0)

None:None: DocTestFailure
___________________ [doctest] numpy.core.umath.floor_divide ____________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.floor_divide(7,3)
Expected:
2
Got:
np.int64(2)

None:None: DocTestFailure
________________________ [doctest] numpy.core.umath.gcd ________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.gcd(12, 20)
Expected:
4
Got:
np.int64(4)

None:None: DocTestFailure
_____________________ [doctest] numpy.core.umath.isfinite ______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.isfinite(1)
Expected:
True
Got:
np.True_

None:None: DocTestFailure
_______________________ [doctest] numpy.core.umath.isinf _______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.isinf(np.inf)
Expected:
True
Got:
np.True_

None:None: DocTestFailure
_______________________ [doctest] numpy.core.umath.isnan _______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.isnan(np.nan)
Expected:
True
Got:
np.True_

None:None: DocTestFailure
_______________________ [doctest] numpy.core.umath.isnat _______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.isnat(np.datetime64("NaT"))
Expected:
True
Got:
np.True_

None:None: DocTestFailure
________________________ [doctest] numpy.core.umath.lcm ________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.lcm(12, 20)
Expected:
60
Got:
np.int64(60)

None:None: DocTestFailure
____________________ [doctest] numpy.core.umath.left_shift _____________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.left_shift(5, 2)
Expected:
20
Got:
np.int64(20)

None:None: DocTestFailure
_______________________ [doctest] numpy.core.umath.log1p _______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.log1p(1e-99)
Expected:
1e-99
Got:
np.float64(1e-99)

None:None: DocTestFailure
_____________________ [doctest] numpy.core.umath.logaddexp _____________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> prob12
Expected:
-113.87649168120691
Got:
np.float64(-113.87649168120691)

None:None: DocTestFailure
____________________ [doctest] numpy.core.umath.logaddexp2 _____________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> 2**prob12
Expected:
3.4999999999999914e-50
Got:
np.float64(3.4999999999999914e-50)

None:None: DocTestFailure
____________________ [doctest] numpy.core.umath.logical_and ____________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.logical_and(True, False)
Expected:
False
Got:
np.False_

None:None: DocTestFailure
____________________ [doctest] numpy.core.umath.logical_not ____________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.logical_not(3)
Expected:
False
Got:
np.False_

None:None: DocTestFailure
____________________ [doctest] numpy.core.umath.logical_or _____________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.logical_or(True, False)
Expected:
True
Got:
np.True_

None:None: DocTestFailure
____________________ [doctest] numpy.core.umath.logical_xor ____________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.logical_xor(True, False)
Expected:
True
Got:
np.True_

None:None: DocTestFailure
______________________ [doctest] numpy.core.umath.maximum ______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.maximum(np.inf, 1)
Expected:
inf
Got:
np.float64(inf)

None:None: DocTestFailure
______________________ [doctest] numpy.core.umath.minimum ______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.minimum(-np.inf, 1)
Expected:
-inf
Got:
np.float64(-inf)

None:None: DocTestFailure
_____________________ [doctest] numpy.core.umath.multiply ______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.multiply(2.0, 4.0)
Expected:
8.0
Got:
np.float64(8.0)

None:None: DocTestFailure
_____________________ [doctest] numpy.core.umath.nextafter _____________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.nextafter(1, 2) == eps + 1
Expected:
True
Got:
np.True_

None:None: DocTestFailure
______________________ [doctest] numpy.core.umath.rad2deg ______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.rad2deg(np.pi/2)
Expected:
90.0
Got:
np.float64(90.0)

None:None: DocTestFailure
____________________ [doctest] numpy.core.umath.reciprocal _____________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.reciprocal(2.)
Expected:
0.5
Got:
np.float64(0.5)

None:None: DocTestFailure
____________________ [doctest] numpy.core.umath.right_shift ____________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.right_shift(10, 1)
Expected:
5
Got:
np.int64(5)

None:None: DocTestFailure
_______________________ [doctest] numpy.core.umath.sign ________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.sign(0)
Expected:
0
Got:
np.int64(0)

None:None: DocTestFailure
______________________ [doctest] numpy.core.umath.signbit ______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.signbit(-1.2)
Expected:
True
Got:
np.True_

None:None: DocTestFailure
________________________ [doctest] numpy.core.umath.sin ________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.sin(np.pi/2.)
Expected:
1.0
Got:
np.float64(1.0)

None:None: DocTestFailure
_______________________ [doctest] numpy.core.umath.sinh ________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.sinh(0)
Expected:
0.0
Got:
np.float64(0.0)

None:None: DocTestFailure
______________________ [doctest] numpy.core.umath.spacing ______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.spacing(1) == np.finfo(np.float64).eps
Expected:
True
Got:
np.True_

None:None: DocTestFailure
_____________________ [doctest] numpy.core.umath.subtract ______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.subtract(1.0, 4.0)
Expected:
-3.0
Got:
np.float64(-3.0)

None:None: DocTestFailure
____________________ [doctest] numpy.core.umath.true_divide ____________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.divide(2.0, 4.0)
Expected:
0.5
Got:
np.float64(0.5)

None:None: DocTestFailure
_______________________ [doctest] numpy.lib.scimath.sqrt _______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.emath.sqrt(1)
Expected:
1.0
Got:
np.float64(1.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/lib/_scimath_impl.py:None: DocTestFailure
_______________________ [doctest] numpy.lib.scimath.log ________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.emath.log(np.exp(1))
Expected:
1.0
Got:
np.float64(1.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/lib/_scimath_impl.py:None: DocTestFailure
_______________________ [doctest] numpy.lib.scimath.log2 _______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.emath.log2(8)
Expected:
3.0
Got:
np.float64(3.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/lib/_scimath_impl.py:None: DocTestFailure
______________________ [doctest] numpy.lib.scimath.log10 _______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.emath.log10(10**1)
Expected:
1.0
Got:
np.float64(1.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/lib/_scimath_impl.py:None: DocTestFailure
______________________ [doctest] numpy.lib.scimath.power _______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.emath.power(2, 2)
Expected:
4
Got:
np.int64(4)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/lib/_scimath_impl.py:None: DocTestFailure
______________________ [doctest] numpy.lib.scimath.arccos ______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.emath.arccos(1) # a scalar is returned
Expected:
0.0
Got:
np.float64(0.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/lib/_scimath_impl.py:None: DocTestFailure
______________________ [doctest] numpy.lib.scimath.arcsin ______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.emath.arcsin(0)
Expected:
0.0
Got:
np.float64(0.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/lib/_scimath_impl.py:None: DocTestFailure
_____________________ [doctest] numpy.lib.scimath.arctanh ______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.emath.arctanh(0.5)
Expected:
0.5493061443340549
Got:
np.float64(0.5493061443340548)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/lib/scimath_impl.py:None: DocTestFailure
_________________________ [doctest] numpy.lib.scimath __________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.emath.log(-math.exp(1)) == (1+1j*math.pi)
Expected:
True
Got:
np.True

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/lib/scimath.py:None: DocTestFailure
________________________ [doctest] numpy.linalg.slogdet ________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> sign * np.exp(logabsdet)
Expected:
-2.0
Got:
np.float64(-2.0000000000000004)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/linalg/init.py:None: DocTestFailure
_________________________ [doctest] numpy.linalg.norm __________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> LA.norm(a)
Expected:
7.745966692414834
Got:
np.float64(7.745966692414834)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/linalg/init.py:None: DocTestFailure
_________________________ [doctest] numpy.linalg.cond __________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> LA.cond(a)
Expected:
1.4142135623730951
Got:
np.float64(1.4142135623730951)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/linalg/init.py:None: DocTestFailure
______________________ [doctest] numpy.linalg.matrix_rank ______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> matrix_rank(np.eye(4)) # Full rank matrix
Expected:
4
Got:
np.int64(4)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/linalg/init.py:None: DocTestFailure
_________________________ [doctest] numpy.linalg.trace _________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.linalg.trace(np.eye(3))
Expected:
3.0
Got:
np.float64(3.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/linalg/init.py:None: DocTestFailure
________________________ [doctest] numpy.linalg.matmul _________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.linalg.matmul(a, b)[0, 1, 1]
Expected:
98
Got:
np.int64(98)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/linalg/init.py:None: DocTestFailure
______________________ [doctest] numpy.linalg.matrix_norm ______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> LA.matrix_norm(b)
Expected:
7.745966692414834
Got:
np.float64(7.745966692414834)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/linalg/init.py:None: DocTestFailure
______________________ [doctest] numpy.linalg.vector_norm ______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> LA.vector_norm(b)
Expected:
16.881943016134134
Got:
np.float64(16.881943016134134)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/linalg/init.py:None: DocTestFailure
____________________ [doctest] numpy.linalg.linalg.slogdet _____________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> sign * np.exp(logabsdet)
Expected:
-2.0
Got:
np.float64(-2.0000000000000004)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/linalg/init.py:None: DocTestFailure
______________________ [doctest] numpy.linalg.linalg.norm ______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> LA.norm(a)
Expected:
7.745966692414834
Got:
np.float64(7.745966692414834)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/linalg/init.py:None: DocTestFailure
______________________ [doctest] numpy.linalg.linalg.cond ______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> LA.cond(a)
Expected:
1.4142135623730951
Got:
np.float64(1.4142135623730951)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/linalg/init.py:None: DocTestFailure
__________________ [doctest] numpy.linalg.linalg.matrix_rank ___________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> matrix_rank(np.eye(4)) # Full rank matrix
Expected:
4
Got:
np.int64(4)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/linalg/init.py:None: DocTestFailure
_____________________ [doctest] numpy.linalg.linalg.trace ______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.linalg.trace(np.eye(3))
Expected:
3.0
Got:
np.float64(3.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/linalg/init.py:None: DocTestFailure
_____________________ [doctest] numpy.linalg.linalg.matmul _____________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.linalg.matmul(a, b)[0, 1, 1]
Expected:
98
Got:
np.int64(98)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/linalg/init.py:None: DocTestFailure
__________________ [doctest] numpy.linalg.linalg.matrix_norm ___________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> LA.matrix_norm(b)
Expected:
7.745966692414834
Got:
np.float64(7.745966692414834)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/linalg/init.py:None: DocTestFailure
__________________ [doctest] numpy.linalg.linalg.vector_norm ___________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> LA.vector_norm(b)
Expected:
16.881943016134134
Got:
np.float64(16.881943016134134)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/linalg/init.py:None: DocTestFailure
____________________________ [doctest] numpy.ma.abs ____________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.absolute(1.2 + 1j)
Expected:
1.5620499351813308
Got:
np.float64(1.5620499351813308)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/core.py:None: DocTestFailure
_________________________ [doctest] numpy.ma.absolute __________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.absolute(1.2 + 1j)
Expected:
1.5620499351813308
Got:
np.float64(1.5620499351813308)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/core.py:None: DocTestFailure
____________________________ [doctest] numpy.ma.add ____________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.add(1.0, 4.0)
Expected:
5.0
Got:
np.float64(5.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/core.py:None: DocTestFailure
____________________________ [doctest] numpy.ma.all ____________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.ma.array([1,2,3]).all()
Expected:
True
Got:
np.True_

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/core.py:None: DocTestFailure
_________________________ [doctest] numpy.ma.allclose __________________________
8469 Examples
8470 --------
8471 >>> import numpy as np
8472 >>> a = np.ma.array([1e10, 1e-7, 42.0], mask=[0, 0, 1])
8473 >>> a
8474 masked_array(data=[10000000000.0, 1e-07, --],
8475 mask=[False, False, True],
8476 fill_value=1e+20)
8477 >>> b = np.ma.array([1e10, 1e-8, -42.0], mask=[0, 0, 1])
8478 >>> np.ma.allclose(a, b)
Expected:
False
Got:
np.False_

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/core.py:8478: DocTestFailure
_________________________ [doctest] numpy.ma.allequal __________________________
8396 masked_array(data=[10000000000.0, 1e-07, --],
8397 mask=[False, False, True],
8398 fill_value=1e+20)
8399
8400 >>> b = np.array([1e10, 1e-7, -42.0])
8401 >>> b
8402 array([ 1.00000000e+10, 1.00000000e-07, -4.20000000e+01])
8403 >>> np.ma.allequal(a, b, fill_value=False)
8404 False
8405 >>> np.ma.allequal(a, b)
Expected:
True
Got:
np.True_

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/core.py:8405: DocTestFailure
___________________________ [doctest] numpy.ma.angle ___________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.angle(1+1j, deg=True) # in degrees
Expected:
45.0
Got:
np.float64(45.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/core.py:None: DocTestFailure
__________________________ [doctest] numpy.ma.arccosh __________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.arccosh(1)
Expected:
0.0
Got:
np.float64(0.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/core.py:None: DocTestFailure
__________________________ [doctest] numpy.ma.arcsin ___________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.arcsin(1) # pi/2
Expected:
1.5707963267948966
Got:
np.float64(1.5707963267948966)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/core.py:None: DocTestFailure
__________________________ [doctest] numpy.ma.argmax ___________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> a.argmax()
Expected:
5
Got:
np.int64(5)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/core.py:None: DocTestFailure
________________________ [doctest] numpy.ma.bitwise_and ________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.bitwise_and(13, 17)
Expected:
1
Got:
np.int64(1)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/core.py:None: DocTestFailure
________________________ [doctest] numpy.ma.bitwise_or _________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.bitwise_or(13, 16)
Expected:
29
Got:
np.int64(29)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/core.py:None: DocTestFailure
________________________ [doctest] numpy.ma.bitwise_xor ________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.bitwise_xor(13, 17)
Expected:
28
Got:
np.int64(28)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/core.py:None: DocTestFailure
_____________________ [doctest] numpy.ma.common_fill_value _____________________
594 -------
595 fill_value : scalar or None
596 The common fill value, or None.
597
598 Examples
599 --------
600 >>> import numpy as np
601 >>> x = np.ma.array([0, 1.], fill_value=3)
602 >>> y = np.ma.array([0, 1.], fill_value=3)
603 >>> np.ma.common_fill_value(x, y)
Expected:
3.0
Got:
np.float64(3.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/core.py:603: DocTestFailure
_________________________ [doctest] numpy.ma.conjugate _________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.conjugate(1+2j)
Expected:
(1-2j)
Got:
np.complex128(1-2j)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/core.py:None: DocTestFailure
___________________________ [doctest] numpy.ma.cosh ____________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.cosh(0)
Expected:
1.0
Got:
np.float64(1.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/core.py:None: DocTestFailure
___________________________ [doctest] numpy.ma.count ___________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> a.count()
Expected:
3
Got:
np.int64(3)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/core.py:None: DocTestFailure
__________________________ [doctest] numpy.ma.divide ___________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.divide(2.0, 4.0)
Expected:
0.5
Got:
np.float64(0.5)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/core.py:None: DocTestFailure
___________________________ [doctest] numpy.ma.fabs ____________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.fabs(-1)
Expected:
1.0
Got:
np.float64(1.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/core.py:None: DocTestFailure
_______________________ [doctest] numpy.ma.floor_divide ________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.floor_divide(7,3)
Expected:
2
Got:
np.int64(2)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/core.py:None: DocTestFailure
__________________________ [doctest] numpy.ma.getmask __________________________
1437 Result when mask == nomask
1438
1439 >>> b = ma.masked_array([[1,2],[3,4]])
1440 >>> b
1441 masked_array(
1442 data=[[1, 2],
1443 [3, 4]],
1444 mask=False,
1445 fill_value=999999)
1446 >>> ma.nomask
Expected:
False
Got:
np.False_

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/core.py:1446: DocTestFailure
___________________________ [doctest] numpy.ma.inner ___________________________
8274 np.inner(a,b) = a*b
8275
8276 Examples
8277 --------
8278 Ordinary inner product for vectors:
8279
8280 >>> import numpy as np
8281 >>> a = np.array([1,2,3])
8282 >>> b = np.array([0,1,0])
8283 >>> np.inner(a, b)
Expected:
2
Got:
np.int64(2)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/core.py:8283: DocTestFailure
_______________________ [doctest] numpy.ma.innerproduct ________________________
8274 np.inner(a,b) = a*b
8275
8276 Examples
8277 --------
8278 Ordinary inner product for vectors:
8279
8280 >>> import numpy as np
8281 >>> a = np.array([1,2,3])
8282 >>> b = np.array([0,1,0])
8283 >>> np.inner(a, b)
Expected:
2
Got:
np.int64(2)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/core.py:8283: DocTestFailure
________________________ [doctest] numpy.ma.logical_and ________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.logical_and(True, False)
Expected:
False
Got:
np.False_

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/core.py:None: DocTestFailure
________________________ [doctest] numpy.ma.logical_not ________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.logical_not(3)
Expected:
False
Got:
np.False_

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/core.py:None: DocTestFailure
________________________ [doctest] numpy.ma.logical_or _________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.logical_or(True, False)
Expected:
True
Got:
np.True_

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/core.py:None: DocTestFailure
________________________ [doctest] numpy.ma.logical_xor ________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.logical_xor(True, False)
Expected:
True
Got:
np.True_

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/core.py:None: DocTestFailure
_________________________ [doctest] numpy.ma.make_mask _________________________
1631 >>> m = [1, 0, 2, -3]
1632 >>> ma.make_mask(m)
1633 array([ True, False, True, True])
1634
1635 Effect of the shrink parameter.
1636
1637 >>> m = np.zeros(4)
1638 >>> m
1639 array([0., 0., 0., 0.])
1640 >>> ma.make_mask(m)
Expected:
False
Got:
np.False_

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/core.py:1640: DocTestFailure
____________________________ [doctest] numpy.ma.max ____________________________
7068 >>> masked_x
7069 masked_array(
7070 data=[[-1.0, 2.5],
7071 [--, -2.0],
7072 [--, 0.0]],
7073 mask=[[False, False],
7074 [ True, False],
7075 [ True, False]],
7076 fill_value=1e+20)
7077 >>> ma.max(masked_x)
Expected:
2.5
Got:
np.float64(2.5)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/core.py:7077: DocTestFailure
__________________________ [doctest] numpy.ma.maximum __________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.maximum(np.inf, 1)
Expected:
inf
Got:
np.float64(inf)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/core.py:None: DocTestFailure
___________________________ [doctest] numpy.ma.mean ____________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> a.mean()
Expected:
1.5
Got:
np.float64(1.5)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/core.py:None: DocTestFailure
____________________________ [doctest] numpy.ma.min ____________________________
7066 >>> mask = [[1, 1, 0], [0, 0, 1]]
7067 >>> masked_x = ma.masked_array(x, mask)
7068 >>> masked_x
7069 masked_array(
7070 data=[[--, --, 3.0],
7071 [0.2, -0.7, --]],
7072 mask=[[ True, True, False],
7073 [False, False, True]],
7074 fill_value=1e+20)
7075 >>> ma.min(masked_x)
Expected:
-0.7
Got:
np.float64(-0.7)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/core.py:7075: DocTestFailure
__________________________ [doctest] numpy.ma.minimum __________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.minimum(-np.inf, 1)
Expected:
-inf
Got:
np.float64(-inf)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/core.py:None: DocTestFailure
_________________________ [doctest] numpy.ma.multiply __________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.multiply(2.0, 4.0)
Expected:
8.0
Got:
np.float64(8.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/core.py:None: DocTestFailure
____________________________ [doctest] numpy.ma.ptp ____________________________
7070 masked_array(data=[8, 6],
7071 mask=False,
7072 fill_value=999999)
7073
7074 >>> x.ptp(axis=0)
7075 masked_array(data=[2, 0, 5, 2],
7076 mask=False,
7077 fill_value=999999)
7078
7079 >>> x.ptp()
Expected:
10
Got:
np.int64(10)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/core.py:7079: DocTestFailure
____________________________ [doctest] numpy.ma.sin ____________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.sin(np.pi/2.)
Expected:
1.0
Got:
np.float64(1.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/core.py:None: DocTestFailure
___________________________ [doctest] numpy.ma.sinh ____________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.sinh(0)
Expected:
0.0
Got:
np.float64(0.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/core.py:None: DocTestFailure
__________________________ [doctest] numpy.ma.squeeze __________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.squeeze(x)[()]
Expected:
1234
Got:
np.int64(1234)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/core.py:None: DocTestFailure
_________________________ [doctest] numpy.ma.subtract __________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.subtract(1.0, 4.0)
Expected:
-3.0
Got:
np.float64(-3.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/core.py:None: DocTestFailure
____________________________ [doctest] numpy.ma.sum ____________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> x.sum()
Expected:
25
Got:
np.int64(25)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/core.py:None: DocTestFailure
________________________ [doctest] numpy.ma.true_divide ________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.divide(2.0, 4.0)
Expected:
0.5
Got:
np.float64(0.5)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/core.py:None: DocTestFailure
____________________________ [doctest] numpy.ma.var ____________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.var(a)
Expected:
1.25
Got:
np.float64(1.25)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/core.py:None: DocTestFailure
__________________________ [doctest] numpy.ma.average __________________________
608 When weights does not have the same shape as a, and axis=None.
609 ValueError
610 When weights does not have dimensions and shape consistent with a
611 along specified axis.
612
613 Examples
614 --------
615 >>> import numpy as np
616 >>> a = np.ma.array([1., 2., 3., 4.], mask=[False, False, True, True])
617 >>> np.ma.average(a, weights=[3, 1, 0, 0])
Expected:
1.25
Got:
np.float64(1.25)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/extras.py:617: DocTestFailure
_______________________ [doctest] numpy.ma.count_masked ________________________
079 >>> a
080 masked_array(
081 data=[[0, 1, 2],
082 [--, 4, --],
083 [6, --, 8]],
084 mask=[[False, False, False],
085 [ True, False, True],
086 [False, True, False]],
087 fill_value=999999)
088 >>> np.ma.count_masked(a)
Expected:
3
Got:
np.int64(3)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/extras.py:88: DocTestFailure
__________________________ [doctest] numpy.ma.median ___________________________
762 Given a vector V with N non masked values, the median of V
763 is the middle value of a sorted copy of V (Vs) - i.e.
764 Vs[(N-1)/2], when N is odd, or {Vs[N/2 - 1] + Vs[N/2]}/2
765 when N is even.
766
767 Examples
768 --------
769 >>> import numpy as np
770 >>> x = np.ma.array(np.arange(8), mask=[0]*4 + [1]*4)
771 >>> np.ma.median(x)
Expected:
1.5
Got:
np.float64(1.5)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/extras.py:771: DocTestFailure
______________________________ [doctest] numpy.ma ______________________________
007 on such arrays, we wish to suppress invalid values, which is the purpose masked
008 arrays fulfill (an example of typical use is given below).
009
010 For example, examine the following array:
011
012 >>> x = np.array([2, 1, 3, np.nan, 5, 2, 3, np.nan])
013
014 When we try to calculate the mean of the data, the result is undetermined:
015
016 >>> np.mean(x)
Expected:
nan
Got:
np.float64(nan)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/init.py:16: DocTestFailure
_________________________ [doctest] numpy.ma.core.abs __________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.absolute(1.2 + 1j)
Expected:
1.5620499351813308
Got:
np.float64(1.5620499351813308)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/core.py:None: DocTestFailure
_______________________ [doctest] numpy.ma.core.absolute _______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.absolute(1.2 + 1j)
Expected:
1.5620499351813308
Got:
np.float64(1.5620499351813308)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/core.py:None: DocTestFailure
_________________________ [doctest] numpy.ma.core.add __________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.add(1.0, 4.0)
Expected:
5.0
Got:
np.float64(5.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/core.py:None: DocTestFailure
_________________________ [doctest] numpy.ma.core.all __________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.ma.array([1,2,3]).all()
Expected:
True
Got:
np.True_

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/core.py:None: DocTestFailure
_______________________ [doctest] numpy.ma.core.allclose _______________________
8469 Examples
8470 --------
8471 >>> import numpy as np
8472 >>> a = np.ma.array([1e10, 1e-7, 42.0], mask=[0, 0, 1])
8473 >>> a
8474 masked_array(data=[10000000000.0, 1e-07, --],
8475 mask=[False, False, True],
8476 fill_value=1e+20)
8477 >>> b = np.ma.array([1e10, 1e-8, -42.0], mask=[0, 0, 1])
8478 >>> np.ma.allclose(a, b)
Expected:
False
Got:
np.False_

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/core.py:8478: DocTestFailure
_______________________ [doctest] numpy.ma.core.allequal _______________________
8396 masked_array(data=[10000000000.0, 1e-07, --],
8397 mask=[False, False, True],
8398 fill_value=1e+20)
8399
8400 >>> b = np.array([1e10, 1e-7, -42.0])
8401 >>> b
8402 array([ 1.00000000e+10, 1.00000000e-07, -4.20000000e+01])
8403 >>> np.ma.allequal(a, b, fill_value=False)
8404 False
8405 >>> np.ma.allequal(a, b)
Expected:
True
Got:
np.True_

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/core.py:8405: DocTestFailure
________________________ [doctest] numpy.ma.core.angle _________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.angle(1+1j, deg=True) # in degrees
Expected:
45.0
Got:
np.float64(45.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/core.py:None: DocTestFailure
_______________________ [doctest] numpy.ma.core.arccosh ________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.arccosh(1)
Expected:
0.0
Got:
np.float64(0.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/core.py:None: DocTestFailure
________________________ [doctest] numpy.ma.core.arcsin ________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.arcsin(1) # pi/2
Expected:
1.5707963267948966
Got:
np.float64(1.5707963267948966)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/core.py:None: DocTestFailure
________________________ [doctest] numpy.ma.core.argmax ________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> a.argmax()
Expected:
5
Got:
np.int64(5)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/core.py:None: DocTestFailure
_____________________ [doctest] numpy.ma.core.bitwise_and ______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.bitwise_and(13, 17)
Expected:
1
Got:
np.int64(1)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/core.py:None: DocTestFailure
______________________ [doctest] numpy.ma.core.bitwise_or ______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.bitwise_or(13, 16)
Expected:
29
Got:
np.int64(29)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/core.py:None: DocTestFailure
_____________________ [doctest] numpy.ma.core.bitwise_xor ______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.bitwise_xor(13, 17)
Expected:
28
Got:
np.int64(28)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/core.py:None: DocTestFailure
__________________ [doctest] numpy.ma.core.common_fill_value ___________________
594 -------
595 fill_value : scalar or None
596 The common fill value, or None.
597
598 Examples
599 --------
600 >>> import numpy as np
601 >>> x = np.ma.array([0, 1.], fill_value=3)
602 >>> y = np.ma.array([0, 1.], fill_value=3)
603 >>> np.ma.common_fill_value(x, y)
Expected:
3.0
Got:
np.float64(3.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/core.py:603: DocTestFailure
______________________ [doctest] numpy.ma.core.conjugate _______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.conjugate(1+2j)
Expected:
(1-2j)
Got:
np.complex128(1-2j)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/core.py:None: DocTestFailure
_________________________ [doctest] numpy.ma.core.cosh _________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.cosh(0)
Expected:
1.0
Got:
np.float64(1.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/core.py:None: DocTestFailure
________________________ [doctest] numpy.ma.core.count _________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> a.count()
Expected:
3
Got:
np.int64(3)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/core.py:None: DocTestFailure
________________________ [doctest] numpy.ma.core.divide ________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.divide(2.0, 4.0)
Expected:
0.5
Got:
np.float64(0.5)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/core.py:None: DocTestFailure
_________________________ [doctest] numpy.ma.core.fabs _________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.fabs(-1)
Expected:
1.0
Got:
np.float64(1.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/core.py:None: DocTestFailure
_____________________ [doctest] numpy.ma.core.floor_divide _____________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.floor_divide(7,3)
Expected:
2
Got:
np.int64(2)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/core.py:None: DocTestFailure
_______________________ [doctest] numpy.ma.core.getmask ________________________
1437 Result when mask == nomask
1438
1439 >>> b = ma.masked_array([[1,2],[3,4]])
1440 >>> b
1441 masked_array(
1442 data=[[1, 2],
1443 [3, 4]],
1444 mask=False,
1445 fill_value=999999)
1446 >>> ma.nomask
Expected:
False
Got:
np.False_

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/core.py:1446: DocTestFailure
________________________ [doctest] numpy.ma.core.inner _________________________
8274 np.inner(a,b) = a*b
8275
8276 Examples
8277 --------
8278 Ordinary inner product for vectors:
8279
8280 >>> import numpy as np
8281 >>> a = np.array([1,2,3])
8282 >>> b = np.array([0,1,0])
8283 >>> np.inner(a, b)
Expected:
2
Got:
np.int64(2)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/core.py:8283: DocTestFailure
_____________________ [doctest] numpy.ma.core.innerproduct _____________________
8274 np.inner(a,b) = a*b
8275
8276 Examples
8277 --------
8278 Ordinary inner product for vectors:
8279
8280 >>> import numpy as np
8281 >>> a = np.array([1,2,3])
8282 >>> b = np.array([0,1,0])
8283 >>> np.inner(a, b)
Expected:
2
Got:
np.int64(2)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/core.py:8283: DocTestFailure
_____________________ [doctest] numpy.ma.core.logical_and ______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.logical_and(True, False)
Expected:
False
Got:
np.False_

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/core.py:None: DocTestFailure
_____________________ [doctest] numpy.ma.core.logical_not ______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.logical_not(3)
Expected:
False
Got:
np.False_

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/core.py:None: DocTestFailure
______________________ [doctest] numpy.ma.core.logical_or ______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.logical_or(True, False)
Expected:
True
Got:
np.True_

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/core.py:None: DocTestFailure
_____________________ [doctest] numpy.ma.core.logical_xor ______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.logical_xor(True, False)
Expected:
True
Got:
np.True_

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/core.py:None: DocTestFailure
______________________ [doctest] numpy.ma.core.make_mask _______________________
1631 >>> m = [1, 0, 2, -3]
1632 >>> ma.make_mask(m)
1633 array([ True, False, True, True])
1634
1635 Effect of the shrink parameter.
1636
1637 >>> m = np.zeros(4)
1638 >>> m
1639 array([0., 0., 0., 0.])
1640 >>> ma.make_mask(m)
Expected:
False
Got:
np.False_

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/core.py:1640: DocTestFailure
_________________________ [doctest] numpy.ma.core.max __________________________
7068 >>> masked_x
7069 masked_array(
7070 data=[[-1.0, 2.5],
7071 [--, -2.0],
7072 [--, 0.0]],
7073 mask=[[False, False],
7074 [ True, False],
7075 [ True, False]],
7076 fill_value=1e+20)
7077 >>> ma.max(masked_x)
Expected:
2.5
Got:
np.float64(2.5)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/core.py:7077: DocTestFailure
_______________________ [doctest] numpy.ma.core.maximum ________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.maximum(np.inf, 1)
Expected:
inf
Got:
np.float64(inf)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/core.py:None: DocTestFailure
_________________________ [doctest] numpy.ma.core.mean _________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> a.mean()
Expected:
1.5
Got:
np.float64(1.5)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/core.py:None: DocTestFailure
_________________________ [doctest] numpy.ma.core.min __________________________
7066 >>> mask = [[1, 1, 0], [0, 0, 1]]
7067 >>> masked_x = ma.masked_array(x, mask)
7068 >>> masked_x
7069 masked_array(
7070 data=[[--, --, 3.0],
7071 [0.2, -0.7, --]],
7072 mask=[[ True, True, False],
7073 [False, False, True]],
7074 fill_value=1e+20)
7075 >>> ma.min(masked_x)
Expected:
-0.7
Got:
np.float64(-0.7)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/core.py:7075: DocTestFailure
_______________________ [doctest] numpy.ma.core.minimum ________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.minimum(-np.inf, 1)
Expected:
-inf
Got:
np.float64(-inf)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/core.py:None: DocTestFailure
_______________________ [doctest] numpy.ma.core.multiply _______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.multiply(2.0, 4.0)
Expected:
8.0
Got:
np.float64(8.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/core.py:None: DocTestFailure
_________________________ [doctest] numpy.ma.core.ptp __________________________
7070 masked_array(data=[8, 6],
7071 mask=False,
7072 fill_value=999999)
7073
7074 >>> x.ptp(axis=0)
7075 masked_array(data=[2, 0, 5, 2],
7076 mask=False,
7077 fill_value=999999)
7078
7079 >>> x.ptp()
Expected:
10
Got:
np.int64(10)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/core.py:7079: DocTestFailure
_________________________ [doctest] numpy.ma.core.sin __________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.sin(np.pi/2.)
Expected:
1.0
Got:
np.float64(1.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/core.py:None: DocTestFailure
_________________________ [doctest] numpy.ma.core.sinh _________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.sinh(0)
Expected:
0.0
Got:
np.float64(0.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/core.py:None: DocTestFailure
_______________________ [doctest] numpy.ma.core.squeeze ________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.squeeze(x)[()]
Expected:
1234
Got:
np.int64(1234)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/core.py:None: DocTestFailure
_______________________ [doctest] numpy.ma.core.subtract _______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.subtract(1.0, 4.0)
Expected:
-3.0
Got:
np.float64(-3.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/core.py:None: DocTestFailure
_________________________ [doctest] numpy.ma.core.sum __________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> x.sum()
Expected:
25
Got:
np.int64(25)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/core.py:None: DocTestFailure
_____________________ [doctest] numpy.ma.core.true_divide ______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.divide(2.0, 4.0)
Expected:
0.5
Got:
np.float64(0.5)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/core.py:None: DocTestFailure
_________________________ [doctest] numpy.ma.core.var __________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.var(a)
Expected:
1.25
Got:
np.float64(1.25)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/core.py:None: DocTestFailure
______________________ [doctest] numpy.ma.extras.average _______________________
608 When weights does not have the same shape as a, and axis=None.
609 ValueError
610 When weights does not have dimensions and shape consistent with a
611 along specified axis.
612
613 Examples
614 --------
615 >>> import numpy as np
616 >>> a = np.ma.array([1., 2., 3., 4.], mask=[False, False, True, True])
617 >>> np.ma.average(a, weights=[3, 1, 0, 0])
Expected:
1.25
Got:
np.float64(1.25)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/extras.py:617: DocTestFailure
____________________ [doctest] numpy.ma.extras.count_masked ____________________
079 >>> a
080 masked_array(
081 data=[[0, 1, 2],
082 [--, 4, --],
083 [6, --, 8]],
084 mask=[[False, False, False],
085 [ True, False, True],
086 [False, True, False]],
087 fill_value=999999)
088 >>> np.ma.count_masked(a)
Expected:
3
Got:
np.int64(3)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/extras.py:88: DocTestFailure
_______________________ [doctest] numpy.ma.extras.median _______________________
762 Given a vector V with N non masked values, the median of V
763 is the middle value of a sorted copy of V (Vs) - i.e.
764 Vs[(N-1)/2], when N is odd, or {Vs[N/2 - 1] + Vs[N/2]}/2
765 when N is even.
766
767 Examples
768 --------
769 >>> import numpy as np
770 >>> x = np.ma.array(np.arange(8), mask=[0]*4 + [1]*4)
771 >>> np.ma.median(x)
Expected:
1.5
Got:
np.float64(1.5)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/ma/extras.py:771: DocTestFailure
_________________________ [doctest] numpy.matlib.fabs __________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.fabs(-1)
Expected:
1.0
Got:
np.float64(1.0)

None:None: DocTestFailure
__________________________ [doctest] numpy.matlib.fix __________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.fix(3.14)
Expected:
3.0
Got:
np.float64(3.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
__________________ [doctest] numpy.matlib.bitwise_left_shift ___________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.left_shift(5, 2)
Expected:
20
Got:
np.int64(20)

None:None: DocTestFailure
__________________________ [doctest] numpy.matlib.var __________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.var(a)
Expected:
1.25
Got:
np.float64(1.25)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
_______________________ [doctest] numpy.matlib.trapezoid _______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.trapezoid([1, 2, 3])
Expected:
4.0
Got:
np.float64(4.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
________________________ [doctest] numpy.matlib.nanprod ________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.nanprod(1)
Expected:
1
Got:
np.int64(1)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
______________________ [doctest] numpy.matlib.left_shift _______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.left_shift(5, 2)
Expected:
20
Got:
np.int64(20)

None:None: DocTestFailure
________________________ [doctest] numpy.matlib.minimum ________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.minimum(-np.inf, 1)
Expected:
-inf
Got:
np.float64(-inf)

None:None: DocTestFailure
_________________________ [doctest] numpy.matlib.trace _________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.trace(np.eye(3))
Expected:
3.0
Got:
np.float64(3.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
________________________ [doctest] numpy.matlib.polyint ________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.polyder(P) == p
Expected:
True
Got:
np.True_

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
_________________________ [doctest] numpy.matlib.cosh __________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.cosh(0)
Expected:
1.0
Got:
np.float64(1.0)

None:None: DocTestFailure
________________________ [doctest] numpy.matlib.nansum _________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.nansum(1)
Expected:
1
Got:
np.int64(1)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
_________________________ [doctest] numpy.matlib.sign __________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.sign(0)
Expected:
0
Got:
np.int64(0)

None:None: DocTestFailure
_______________________ [doctest] numpy.matlib.conjugate _______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.conjugate(1+2j)
Expected:
(1-2j)
Got:
np.complex128(1-2j)

None:None: DocTestFailure
______________________ [doctest] numpy.matlib.nanquantile ______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.nanquantile(a, 0.5)
Expected:
3.0
Got:
np.float64(3.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
________________________ [doctest] numpy.matlib.polyder ________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> p2(2.)
Expected:
17.0
Got:
np.float64(17.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
______________________ [doctest] numpy.matlib.logical_xor ______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.logical_xor(True, False)
Expected:
True
Got:
np.True_

None:None: DocTestFailure
________________________ [doctest] numpy.matlib.divide _________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.divide(2.0, 4.0)
Expected:
0.5
Got:
np.float64(0.5)

None:None: DocTestFailure
_______________________ [doctest] numpy.matlib.logaddexp _______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> prob12
Expected:
-113.87649168120691
Got:
np.float64(-113.87649168120691)

None:None: DocTestFailure
____________________ [doctest] numpy.matlib.cumulative_sum _____________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.cumulative_sum(c)[-1]
Expected:
1000000.0050045159
Got:
np.float64(1000000.0050045159)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
________________________ [doctest] numpy.matlib.nanvar _________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.nanvar(a)
Expected:
1.5555555555555554
Got:
np.float64(1.5555555555555554)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
_______________________ [doctest] numpy.matlib.isfinite ________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.isfinite(1)
Expected:
True
Got:
np.True_

None:None: DocTestFailure
________________________ [doctest] numpy.matlib.matmul _________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.matmul(a, b)[0, 1, 1]
Expected:
98
Got:
np.int64(98)

None:None: DocTestFailure
_________________________ [doctest] numpy.matlib.isinf _________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.isinf(np.inf)
Expected:
True
Got:
np.True_

None:None: DocTestFailure
_______________________ [doctest] numpy.matlib.nanargmax _______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.argmax(a)
Expected:
0
Got:
np.int64(0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
__________________________ [doctest] numpy.matlib.dot __________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.dot(3, 4)
Expected:
12
Got:
np.int64(12)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
__________________________ [doctest] numpy.matlib.sum __________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.sum([])
Expected:
0.0
Got:
np.float64(0.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
________________________ [doctest] numpy.matlib.nanmean ________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.nanmean(a)
Expected:
2.6666666666666665
Got:
np.float64(2.6666666666666665)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
_________________________ [doctest] numpy.matlib.str_ __________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> s
Expected:
'abc'
Got:
np.str_('abc')

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
________________________ [doctest] numpy.matlib.rad2deg ________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.rad2deg(np.pi/2)
Expected:
90.0
Got:
np.float64(90.0)

None:None: DocTestFailure
__________________________ [doctest] numpy.matlib.min __________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.min(a) # Minimum of the flattened array
Expected:
0
Got:
np.int64(0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
________________________ [doctest] numpy.matlib.polyval ________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.polyval([3,0,1], 5) # 3 * 52 + 0 * 51 + 1
Expected:
76
Got:
np.int64(76)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
________________________ [doctest] numpy.matlib.flipud _________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.all(np.flipud(A) == A[::-1,...])
Expected:
True
Got:
np.True_

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
_______________________ [doctest] numpy.matlib.bincount ________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.bincount(x).size == np.amax(x)+1
Expected:
True
Got:
np.True_

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
_____________________ [doctest] numpy.matlib.ufunc.reduce ______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.multiply.reduce([2,3,5])
Expected:
30
Got:
np.int64(30)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
_________________________ [doctest] numpy.matlib.vdot __________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.vdot(a, b)
Expected:
(70-8j)
Got:
np.complex128(70-8j)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
_________________________ [doctest] numpy.matlib.isnan _________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.isnan(np.nan)
Expected:
True
Got:
np.True_

None:None: DocTestFailure
__________________________ [doctest] numpy.matlib.lcm __________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.lcm(12, 20)
Expected:
60
Got:
np.int64(60)

None:None: DocTestFailure
______________________ [doctest] numpy.matlib.reciprocal _______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.reciprocal(2.)
Expected:
0.5
Got:
np.float64(0.5)

None:None: DocTestFailure
_________________________ [doctest] numpy.matlib.isnat _________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.isnat(np.datetime64("NaT"))
Expected:
True
Got:
np.True_

None:None: DocTestFailure
________________________ [doctest] numpy.matlib.signbit ________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.signbit(-1.2)
Expected:
True
Got:
np.True_

None:None: DocTestFailure
______________________ [doctest] numpy.matlib.bitwise_and ______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.bitwise_and(13, 17)
Expected:
1
Got:
np.int64(1)

None:None: DocTestFailure
________________________ [doctest] numpy.matlib.maximum ________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.maximum(np.inf, 1)
Expected:
inf
Got:
np.float64(inf)

None:None: DocTestFailure
________________________ [doctest] numpy.matlib.spacing ________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.spacing(1) == np.finfo(np.float64).eps
Expected:
True
Got:
np.True_

None:None: DocTestFailure
__________________________ [doctest] numpy.matlib.std __________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.std(a, where=[[True], [True], [False]])
Expected:
2.0
Got:
np.float64(2.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
________________________ [doctest] numpy.matlib.arccosh ________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.arccosh(1)
Expected:
0.0
Got:
np.float64(0.0)

None:None: DocTestFailure
______________________ [doctest] numpy.matlib.bitwise_or _______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.bitwise_or(13, 16)
Expected:
29
Got:
np.int64(29)

None:None: DocTestFailure
______________________ [doctest] numpy.matlib.logical_not ______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.logical_not(3)
Expected:
False
Got:
np.False_

None:None: DocTestFailure
_____________________ [doctest] numpy.matlib.nanpercentile _____________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.nanpercentile(a, 50)
Expected:
3.0
Got:
np.float64(3.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
_________________________ [doctest] numpy.matlib.acosh _________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.arccosh(1)
Expected:
0.0
Got:
np.float64(0.0)

None:None: DocTestFailure
__________________________ [doctest] numpy.matlib.any __________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.any([[True, False], [True, True]])
Expected:
True
Got:
np.True_

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
________________________ [doctest] numpy.matlib.poly1d _________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> p(0.5)
Expected:
4.25
Got:
np.float64(4.25)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
________________________ [doctest] numpy.matlib.arcsin _________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.arcsin(1) # pi/2
Expected:
1.5707963267948966
Got:
np.float64(1.5707963267948966)

None:None: DocTestFailure
__________________________ [doctest] numpy.matlib.max __________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.max(a) # Maximum of the flattened array
Expected:
3
Got:
np.int64(3)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
________________________ [doctest] numpy.matlib.average ________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.average(data)
Expected:
2.5
Got:
np.float64(2.5)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
_________________________ [doctest] numpy.matlib.copy __________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> x[0] == y[0]
Expected:
True
Got:
np.True_

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
_________________________ [doctest] numpy.matlib.flip __________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.all(np.flip(A,2) == A[:,:,::-1,...])
Expected:
True
Got:
np.True_

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
_______________________ [doctest] numpy.matlib.multiply ________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.multiply(2.0, 4.0)
Expected:
8.0
Got:
np.float64(8.0)

None:None: DocTestFailure
______________________ [doctest] numpy.matlib.logical_or _______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.logical_or(True, False)
Expected:
True
Got:
np.True_

None:None: DocTestFailure
________________________ [doctest] numpy.matlib.cumsum _________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> b.cumsum()[-1]
Expected:
1000000.0050045159
Got:
np.float64(1000000.0050045159)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
_________________________ [doctest] numpy.matlib.expm1 _________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.expm1(1e-10)
Expected:
1.00000000005e-10
Got:
np.float64(1.00000000005e-10)

None:None: DocTestFailure
__________________________ [doctest] numpy.matlib.sin __________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.sin(np.pi/2.)
Expected:
1.0
Got:
np.float64(1.0)

None:None: DocTestFailure
_________________________ [doctest] numpy.matlib.prod __________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.prod([])
Expected:
1.0
Got:
np.float64(1.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
_________________________ [doctest] numpy.matlib.round _________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.round(56294995342131.5, 3)
Expected:
56294995342131.51
Got:
np.float64(56294995342131.51)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
________________________ [doctest] numpy.matlib.nanmin _________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.nanmin(a)
Expected:
1.0
Got:
np.float64(1.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
__________________________ [doctest] numpy.matlib.gcd __________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.gcd(12, 20)
Expected:
4
Got:
np.int64(4)

None:None: DocTestFailure
_____________________ [doctest] numpy.matlib.busday_count ______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> # Number of weekdays in January 2011
??? ... np.busday_count('2011-01', '2011-02')
Expected:
21
Got:
np.int64(21)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
______________________ [doctest] numpy.matlib.nan_to_num _______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.nan_to_num(np.inf)
Expected:
1.7976931348623157e+308
Got:
np.float64(1.7976931348623157e+308)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
________________________ [doctest] numpy.matlib.argmin _________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.argmin(a)
Expected:
0
Got:
np.int64(0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
________________________ [doctest] numpy.matlib.einsum _________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.einsum('ii', a)
Expected:
60
Got:
np.int64(60)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
________________________ [doctest] numpy.matlib.fliplr _________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.all(np.fliplr(A) == A[:,::-1,...])
Expected:
True
Got:
np.True_

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
_______________________ [doctest] numpy.matlib.nextafter _______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.nextafter(1, 2) == eps + 1
Expected:
True
Got:
np.True_

None:None: DocTestFailure
________________________ [doctest] numpy.matlib.interp _________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.interp(2.5, xp, fp)
Expected:
1.0
Got:
np.float64(1.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
______________________ [doctest] numpy.matlib.true_divide ______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.divide(2.0, 4.0)
Expected:
0.5
Got:
np.float64(0.5)

None:None: DocTestFailure
__________________________ [doctest] numpy.matlib.add __________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.add(1.0, 4.0)
Expected:
5.0
Got:
np.float64(5.0)

None:None: DocTestFailure
______________________ [doctest] numpy.matlib.logaddexp2 _______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> 2**prob12
Expected:
3.4999999999999914e-50
Got:
np.float64(3.4999999999999914e-50)

None:None: DocTestFailure
_________________________ [doctest] numpy.matlib.sinh __________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.sinh(0)
Expected:
0.0
Got:
np.float64(0.0)

None:None: DocTestFailure
_______________________ [doctest] numpy.matlib.isposinf ________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.isposinf(np.inf)
Expected:
True
Got:
np.True_

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
_______________________ [doctest] numpy.matlib.copysign ________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.copysign(1.3, -1)
Expected:
-1.3
Got:
np.float64(-1.3)

None:None: DocTestFailure
_________________________ [doctest] numpy.matlib.log1p _________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.log1p(1e-99)
Expected:
1e-99
Got:
np.float64(1e-99)

None:None: DocTestFailure
_________________________ [doctest] numpy.matlib.mean __________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.mean(a)
Expected:
2.5
Got:
np.float64(2.5)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
__________________________ [doctest] numpy.matlib.abs __________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.absolute(1.2 + 1j)
Expected:
1.5620499351813308
Got:
np.float64(1.5620499351813308)

None:None: DocTestFailure
_________________________ [doctest] numpy.matlib.conj __________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.conjugate(1+2j)
Expected:
(1-2j)
Got:
np.complex128(1-2j)

None:None: DocTestFailure
__________________ [doctest] numpy.matlib.bitwise_right_shift __________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.right_shift(10, 1)
Expected:
5
Got:
np.int64(5)

None:None: DocTestFailure
___________________ [doctest] numpy.matlib.ravel_multi_index ___________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.ravel_multi_index((3,1,4,1), (6,7,8,9))
Expected:
1621
Got:
np.int64(1621)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
_____________________ [doctest] numpy.matlib.floor_divide ______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.floor_divide(7,3)
Expected:
2
Got:
np.int64(2)

None:None: DocTestFailure
_________________________ [doctest] numpy.matlib.inner _________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.inner(a, b)
Expected:
2
Got:
np.int64(2)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
_______________________ [doctest] numpy.matlib.histogram _______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> hist.sum()
Expected:
2.4999999999999996
Got:
np.float64(2.4999999999999996)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
_______________________ [doctest] numpy.matlib.nanargmin _______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.argmin(a)
Expected:
0
Got:
np.int64(0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
________________________ [doctest] numpy.matlib.deg2rad ________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.deg2rad(180)
Expected:
3.1415926535897931
Got:
np.float64(3.141592653589793)

None:None: DocTestFailure
__________________________ [doctest] numpy.matlib.all __________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.all([[True,False],[True,True]])
Expected:
False
Got:
np.False_

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
________________________ [doctest] numpy.matlib.nanstd _________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.nanstd(a)
Expected:
1.247219128924647
Got:
np.float64(1.247219128924647)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
_______________________ [doctest] numpy.matlib.isneginf ________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.isneginf(-np.inf)
Expected:
True
Got:
np.True_

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
_________________________ [doctest] numpy.matlib.kron __________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> c[K] == a[I]*b[J]
Expected:
True
Got:
np.True_

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
_____________________ [doctest] numpy.matlib.searchsorted ______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.searchsorted([11,12,13,14,15], 13)
Expected:
2
Got:
np.int64(2)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
________________________ [doctest] numpy.matlib.degrees ________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.all(r == out)
Expected:
True
Got:
np.True_

None:None: DocTestFailure
_______________________ [doctest] numpy.matlib.subtract ________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.subtract(1.0, 4.0)
Expected:
-3.0
Got:
np.float64(-3.0)

None:None: DocTestFailure
______________________ [doctest] numpy.matlib.percentile _______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.percentile(a, 50)
Expected:
3.5
Got:
np.float64(3.5)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
_________________________ [doctest] numpy.matlib.asin __________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.arcsin(1) # pi/2
Expected:
1.5707963267948966
Got:
np.float64(1.5707963267948966)

None:None: DocTestFailure
______________________ [doctest] numpy.matlib.bitwise_xor ______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.bitwise_xor(13, 17)
Expected:
28
Got:
np.int64(28)

None:None: DocTestFailure
_______________________ [doctest] numpy.matlib.nanmedian _______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.nanmedian(a)
Expected:
3.0
Got:
np.float64(3.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
_______________________ [doctest] numpy.matlib.quantile ________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.quantile(a, 0.5)
Expected:
3.5
Got:
np.float64(3.5)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
______________________ [doctest] numpy.matlib.logical_and ______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.logical_and(True, False)
Expected:
False
Got:
np.False_

None:None: DocTestFailure
_________________________ [doctest] numpy.matlib.angle _________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.angle(1+1j, deg=True) # in degrees
Expected:
45.0
Got:
np.float64(45.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
__________________________ [doctest] numpy.matlib.ptp __________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.ptp(x)
Expected:
10
Got:
np.int64(10)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
______________________ [doctest] numpy.matlib.right_shift ______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.right_shift(10, 1)
Expected:
5
Got:
np.int64(5)

None:None: DocTestFailure
________________________ [doctest] numpy.matlib.nanmax _________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.nanmax(a)
Expected:
3.0
Got:
np.float64(3.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
________________________ [doctest] numpy.matlib.squeeze ________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.squeeze(x)[()]
Expected:
1234
Got:
np.int64(1234)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
________________________ [doctest] numpy.matlib.argmax _________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.argmax(a)
Expected:
5
Got:
np.int64(5)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/init.py:None: DocTestFailure
_______________________ [doctest] numpy.matlib.absolute ________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.absolute(1.2 + 1j)
Expected:
1.5620499351813308
Got:
np.float64(1.5620499351813308)

None:None: DocTestFailure
__________________ [doctest] numpy.polynomial.Polynomial._add __________________
236 polysub, polymulx, polymul, polydiv, polypow
237
238 Examples
239 --------
240 >>> from numpy.polynomial import polynomial as P
241 >>> c1 = (1, 2, 3)
242 >>> c2 = (3, 2, 1)
243 >>> sum = P.polyadd(c1,c2); sum
244 array([4., 4., 4.])
245 >>> P.polyval(2, sum) # 4 + 4(2) + 4(2**2)
Expected:
28.0
Got:
np.float64(28.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/polynomial/polynomial.py:245: DocTestFailure
_________________ [doctest] numpy.polynomial.Polynomial._line __________________
133 numpy.polynomial.laguerre.lagline
134 numpy.polynomial.hermite.hermline
135 numpy.polynomial.hermite_e.hermeline
136
137 Examples
138 --------
139 >>> from numpy.polynomial import polynomial as P
140 >>> P.polyline(1, -1)
141 array([ 1, -1])
142 >>> P.polyval(1, P.polyline(1, -1)) # should be 0
Expected:
0.0
Got:
np.float64(0.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/polynomial/polynomial.py:142: DocTestFailure
__________________ [doctest] numpy.polynomial.Polynomial._val __________________
725
726 Notes
727 -----
728 The evaluation uses Horner's method.
729
730 Examples
731 --------
732 >>> import numpy as np
733 >>> from numpy.polynomial.polynomial import polyval
734 >>> polyval(1, [1,2,3])
Expected:
6.0
Got:
np.float64(6.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/polynomial/polynomial.py:734: DocTestFailure
__________________ [doctest] numpy.polynomial.Chebyshev._line __________________
495 numpy.polynomial.laguerre.lagline
496 numpy.polynomial.hermite.hermline
497 numpy.polynomial.hermite_e.hermeline
498
499 Examples
500 --------
501 >>> import numpy.polynomial.chebyshev as C
502 >>> C.chebline(3,2)
503 array([3, 2])
504 >>> C.chebval(-3, C.chebline(3,2)) # should be -3
Expected:
-3.0
Got:
np.float64(-3.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/polynomial/chebyshev.py:504: DocTestFailure
__________________ [doctest] numpy.polynomial.Legendre._line ___________________
250 numpy.polynomial.laguerre.lagline
251 numpy.polynomial.hermite.hermline
252 numpy.polynomial.hermite_e.hermeline
253
254 Examples
255 --------
256 >>> import numpy.polynomial.legendre as L
257 >>> L.legline(3,2)
258 array([3, 2])
259 >>> L.legval(-3, L.legline(3,2)) # should be -3
Expected:
-3.0
Got:
np.float64(-3.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/polynomial/legendre.py:259: DocTestFailure
___________________ [doctest] numpy.polynomial.Hermite._line ___________________
237 numpy.polynomial.polynomial.polyline
238 numpy.polynomial.chebyshev.chebline
239 numpy.polynomial.legendre.legline
240 numpy.polynomial.laguerre.lagline
241 numpy.polynomial.hermite_e.hermeline
242
243 Examples
244 --------
245 >>> from numpy.polynomial.hermite import hermline, hermval
246 >>> hermval(0,hermline(3, 2))
Expected:
3.0
Got:
np.float64(3.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/polynomial/hermite.py:246: DocTestFailure
___________________ [doctest] numpy.polynomial.Hermite._val ____________________
856
857 Notes
858 -----
859 The evaluation uses Clenshaw recursion, aka synthetic division.
860
861 Examples
862 --------
863 >>> from numpy.polynomial.hermite import hermval
864 >>> coef = [1,2,3]
865 >>> hermval(1, coef)
Expected:
11.0
Got:
np.float64(11.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/polynomial/hermite.py:865: DocTestFailure
__________________ [doctest] numpy.polynomial.HermiteE._line ___________________
237 numpy.polynomial.chebyshev.chebline
238 numpy.polynomial.legendre.legline
239 numpy.polynomial.laguerre.lagline
240 numpy.polynomial.hermite.hermline
241
242 Examples
243 --------
244 >>> from numpy.polynomial.hermite_e import hermeline
245 >>> from numpy.polynomial.hermite_e import hermeline, hermeval
246 >>> hermeval(0,hermeline(3, 2))
Expected:
3.0
Got:
np.float64(3.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/polynomial/hermite_e.py:246: DocTestFailure
___________________ [doctest] numpy.polynomial.HermiteE._val ___________________
854
855 Notes
856 -----
857 The evaluation uses Clenshaw recursion, aka synthetic division.
858
859 Examples
860 --------
861 >>> from numpy.polynomial.hermite_e import hermeval
862 >>> coef = [1,2,3]
863 >>> hermeval(1, coef)
Expected:
3.0
Got:
np.float64(3.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/polynomial/hermite_e.py:863: DocTestFailure
__________________ [doctest] numpy.polynomial.Laguerre._line ___________________
232 numpy.polynomial.polynomial.polyline
233 numpy.polynomial.chebyshev.chebline
234 numpy.polynomial.legendre.legline
235 numpy.polynomial.hermite.hermline
236 numpy.polynomial.hermite_e.hermeline
237
238 Examples
239 --------
240 >>> from numpy.polynomial.laguerre import lagline, lagval
241 >>> lagval(0,lagline(3, 2))
Expected:
3.0
Got:
np.float64(3.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/polynomial/laguerre.py:241: DocTestFailure
___________________ [doctest] numpy.polynomial.Laguerre._val ___________________
855
856 Notes
857 -----
858 The evaluation uses Clenshaw recursion, aka synthetic division.
859
860 Examples
861 --------
862 >>> from numpy.polynomial.laguerre import lagval
863 >>> coef = [1, 2, 3]
864 >>> lagval(1, coef)
Expected:
-0.5
Got:
np.float64(-0.5)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/polynomial/laguerre.py:864: DocTestFailure
________________ [doctest] numpy.polynomial.chebyshev.chebline _________________
495 numpy.polynomial.laguerre.lagline
496 numpy.polynomial.hermite.hermline
497 numpy.polynomial.hermite_e.hermeline
498
499 Examples
500 --------
501 >>> import numpy.polynomial.chebyshev as C
502 >>> C.chebline(3,2)
503 array([3, 2])
504 >>> C.chebval(-3, C.chebline(3,2)) # should be -3
Expected:
-3.0
Got:
np.float64(-3.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/polynomial/chebyshev.py:504: DocTestFailure
_____________ [doctest] numpy.polynomial.chebyshev.Chebyshev._line _____________
495 numpy.polynomial.laguerre.lagline
496 numpy.polynomial.hermite.hermline
497 numpy.polynomial.hermite_e.hermeline
498
499 Examples
500 --------
501 >>> import numpy.polynomial.chebyshev as C
502 >>> C.chebline(3,2)
503 array([3, 2])
504 >>> C.chebval(-3, C.chebline(3,2)) # should be -3
Expected:
-3.0
Got:
np.float64(-3.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/polynomial/chebyshev.py:504: DocTestFailure
_________________ [doctest] numpy.polynomial.hermite.hermline __________________
237 numpy.polynomial.polynomial.polyline
238 numpy.polynomial.chebyshev.chebline
239 numpy.polynomial.legendre.legline
240 numpy.polynomial.laguerre.lagline
241 numpy.polynomial.hermite_e.hermeline
242
243 Examples
244 --------
245 >>> from numpy.polynomial.hermite import hermline, hermval
246 >>> hermval(0,hermline(3, 2))
Expected:
3.0
Got:
np.float64(3.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/polynomial/hermite.py:246: DocTestFailure
__________________ [doctest] numpy.polynomial.hermite.hermval __________________
856
857 Notes
858 -----
859 The evaluation uses Clenshaw recursion, aka synthetic division.
860
861 Examples
862 --------
863 >>> from numpy.polynomial.hermite import hermval
864 >>> coef = [1,2,3]
865 >>> hermval(1, coef)
Expected:
11.0
Got:
np.float64(11.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/polynomial/hermite.py:865: DocTestFailure
_______________ [doctest] numpy.polynomial.hermite.Hermite._line _______________
237 numpy.polynomial.polynomial.polyline
238 numpy.polynomial.chebyshev.chebline
239 numpy.polynomial.legendre.legline
240 numpy.polynomial.laguerre.lagline
241 numpy.polynomial.hermite_e.hermeline
242
243 Examples
244 --------
245 >>> from numpy.polynomial.hermite import hermline, hermval
246 >>> hermval(0,hermline(3, 2))
Expected:
3.0
Got:
np.float64(3.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/polynomial/hermite.py:246: DocTestFailure
_______________ [doctest] numpy.polynomial.hermite.Hermite._val ________________
856
857 Notes
858 -----
859 The evaluation uses Clenshaw recursion, aka synthetic division.
860
861 Examples
862 --------
863 >>> from numpy.polynomial.hermite import hermval
864 >>> coef = [1,2,3]
865 >>> hermval(1, coef)
Expected:
11.0
Got:
np.float64(11.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/polynomial/hermite.py:865: DocTestFailure
________________ [doctest] numpy.polynomial.hermite_e.hermeline ________________
237 numpy.polynomial.chebyshev.chebline
238 numpy.polynomial.legendre.legline
239 numpy.polynomial.laguerre.lagline
240 numpy.polynomial.hermite.hermline
241
242 Examples
243 --------
244 >>> from numpy.polynomial.hermite_e import hermeline
245 >>> from numpy.polynomial.hermite_e import hermeline, hermeval
246 >>> hermeval(0,hermeline(3, 2))
Expected:
3.0
Got:
np.float64(3.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/polynomial/hermite_e.py:246: DocTestFailure
________________ [doctest] numpy.polynomial.hermite_e.hermeval _________________
854
855 Notes
856 -----
857 The evaluation uses Clenshaw recursion, aka synthetic division.
858
859 Examples
860 --------
861 >>> from numpy.polynomial.hermite_e import hermeval
862 >>> coef = [1,2,3]
863 >>> hermeval(1, coef)
Expected:
3.0
Got:
np.float64(3.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/polynomial/hermite_e.py:863: DocTestFailure
_____________ [doctest] numpy.polynomial.hermite_e.HermiteE._line ______________
237 numpy.polynomial.chebyshev.chebline
238 numpy.polynomial.legendre.legline
239 numpy.polynomial.laguerre.lagline
240 numpy.polynomial.hermite.hermline
241
242 Examples
243 --------
244 >>> from numpy.polynomial.hermite_e import hermeline
245 >>> from numpy.polynomial.hermite_e import hermeline, hermeval
246 >>> hermeval(0,hermeline(3, 2))
Expected:
3.0
Got:
np.float64(3.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/polynomial/hermite_e.py:246: DocTestFailure
______________ [doctest] numpy.polynomial.hermite_e.HermiteE._val ______________
854
855 Notes
856 -----
857 The evaluation uses Clenshaw recursion, aka synthetic division.
858
859 Examples
860 --------
861 >>> from numpy.polynomial.hermite_e import hermeval
862 >>> coef = [1,2,3]
863 >>> hermeval(1, coef)
Expected:
3.0
Got:
np.float64(3.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/polynomial/hermite_e.py:863: DocTestFailure
_________________ [doctest] numpy.polynomial.laguerre.lagline __________________
232 numpy.polynomial.polynomial.polyline
233 numpy.polynomial.chebyshev.chebline
234 numpy.polynomial.legendre.legline
235 numpy.polynomial.hermite.hermline
236 numpy.polynomial.hermite_e.hermeline
237
238 Examples
239 --------
240 >>> from numpy.polynomial.laguerre import lagline, lagval
241 >>> lagval(0,lagline(3, 2))
Expected:
3.0
Got:
np.float64(3.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/polynomial/laguerre.py:241: DocTestFailure
__________________ [doctest] numpy.polynomial.laguerre.lagval __________________
855
856 Notes
857 -----
858 The evaluation uses Clenshaw recursion, aka synthetic division.
859
860 Examples
861 --------
862 >>> from numpy.polynomial.laguerre import lagval
863 >>> coef = [1, 2, 3]
864 >>> lagval(1, coef)
Expected:
-0.5
Got:
np.float64(-0.5)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/polynomial/laguerre.py:864: DocTestFailure
______________ [doctest] numpy.polynomial.laguerre.Laguerre._line ______________
232 numpy.polynomial.polynomial.polyline
233 numpy.polynomial.chebyshev.chebline
234 numpy.polynomial.legendre.legline
235 numpy.polynomial.hermite.hermline
236 numpy.polynomial.hermite_e.hermeline
237
238 Examples
239 --------
240 >>> from numpy.polynomial.laguerre import lagline, lagval
241 >>> lagval(0,lagline(3, 2))
Expected:
3.0
Got:
np.float64(3.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/polynomial/laguerre.py:241: DocTestFailure
______________ [doctest] numpy.polynomial.laguerre.Laguerre._val _______________
855
856 Notes
857 -----
858 The evaluation uses Clenshaw recursion, aka synthetic division.
859
860 Examples
861 --------
862 >>> from numpy.polynomial.laguerre import lagval
863 >>> coef = [1, 2, 3]
864 >>> lagval(1, coef)
Expected:
-0.5
Got:
np.float64(-0.5)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/polynomial/laguerre.py:864: DocTestFailure
_________________ [doctest] numpy.polynomial.laguerre.lagval2d _________________
937 Notes
938 -----
939
940 .. versionadded:: 1.7.0
941
942 Examples
943 --------
944 >>> from numpy.polynomial.laguerre import lagval2d
945 >>> c = [[1, 2],[3, 4]]
946 >>> lagval2d(1, 1, c)
Expected:
1.0
Got:
np.float64(1.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/polynomial/laguerre.py:946: DocTestFailure
_________________ [doctest] numpy.polynomial.laguerre.lagval3d _________________
1055 Notes
1056 -----
1057
1058 .. versionadded:: 1.7.0
1059
1060 Examples
1061 --------
1062 >>> from numpy.polynomial.laguerre import lagval3d
1063 >>> c = [[[1, 2], [3, 4]], [[5, 6], [7, 8]]]
1064 >>> lagval3d(1, 1, 2, c)
Expected:
-1.0
Got:
np.float64(-1.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/polynomial/laguerre.py:1064: DocTestFailure
_________________ [doctest] numpy.polynomial.legendre.legline __________________
250 numpy.polynomial.laguerre.lagline
251 numpy.polynomial.hermite.hermline
252 numpy.polynomial.hermite_e.hermeline
253
254 Examples
255 --------
256 >>> import numpy.polynomial.legendre as L
257 >>> L.legline(3,2)
258 array([3, 2])
259 >>> L.legval(-3, L.legline(3,2)) # should be -3
Expected:
-3.0
Got:
np.float64(-3.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/polynomial/legendre.py:259: DocTestFailure
______________ [doctest] numpy.polynomial.legendre.Legendre._line ______________
250 numpy.polynomial.laguerre.lagline
251 numpy.polynomial.hermite.hermline
252 numpy.polynomial.hermite_e.hermeline
253
254 Examples
255 --------
256 >>> import numpy.polynomial.legendre as L
257 >>> L.legline(3,2)
258 array([3, 2])
259 >>> L.legval(-3, L.legline(3,2)) # should be -3
Expected:
-3.0
Got:
np.float64(-3.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/polynomial/legendre.py:259: DocTestFailure
________________ [doctest] numpy.polynomial.polynomial.polyline ________________
133 numpy.polynomial.laguerre.lagline
134 numpy.polynomial.hermite.hermline
135 numpy.polynomial.hermite_e.hermeline
136
137 Examples
138 --------
139 >>> from numpy.polynomial import polynomial as P
140 >>> P.polyline(1, -1)
141 array([ 1, -1])
142 >>> P.polyval(1, P.polyline(1, -1)) # should be 0
Expected:
0.0
Got:
np.float64(0.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/polynomial/polynomial.py:142: DocTestFailure
________________ [doctest] numpy.polynomial.polynomial.polyadd _________________
236 polysub, polymulx, polymul, polydiv, polypow
237
238 Examples
239 --------
240 >>> from numpy.polynomial import polynomial as P
241 >>> c1 = (1, 2, 3)
242 >>> c2 = (3, 2, 1)
243 >>> sum = P.polyadd(c1,c2); sum
244 array([4., 4., 4.])
245 >>> P.polyval(2, sum) # 4 + 4(2) + 4(2**2)
Expected:
28.0
Got:
np.float64(28.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/polynomial/polynomial.py:245: DocTestFailure
________________ [doctest] numpy.polynomial.polynomial.polyval _________________
725
726 Notes
727 -----
728 The evaluation uses Horner's method.
729
730 Examples
731 --------
732 >>> import numpy as np
733 >>> from numpy.polynomial.polynomial import polyval
734 >>> polyval(1, [1,2,3])
Expected:
6.0
Got:
np.float64(6.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/polynomial/polynomial.py:734: DocTestFailure
____________ [doctest] numpy.polynomial.polynomial.polyvalfromroots ____________
815 The shape of the returned array is described above.
816
817 See Also
818 --------
819 polyroots, polyfromroots, polyval
820
821 Examples
822 --------
823 >>> from numpy.polynomial.polynomial import polyvalfromroots
824 >>> polyvalfromroots(1, [1, 2, 3])
Expected:
0.0
Got:
np.float64(0.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/polynomial/polynomial.py:824: DocTestFailure
____________ [doctest] numpy.polynomial.polynomial.Polynomial._add _____________
236 polysub, polymulx, polymul, polydiv, polypow
237
238 Examples
239 --------
240 >>> from numpy.polynomial import polynomial as P
241 >>> c1 = (1, 2, 3)
242 >>> c2 = (3, 2, 1)
243 >>> sum = P.polyadd(c1,c2); sum
244 array([4., 4., 4.])
245 >>> P.polyval(2, sum) # 4 + 4(2) + 4(2**2)
Expected:
28.0
Got:
np.float64(28.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/polynomial/polynomial.py:245: DocTestFailure
____________ [doctest] numpy.polynomial.polynomial.Polynomial._line ____________
133 numpy.polynomial.laguerre.lagline
134 numpy.polynomial.hermite.hermline
135 numpy.polynomial.hermite_e.hermeline
136
137 Examples
138 --------
139 >>> from numpy.polynomial import polynomial as P
140 >>> P.polyline(1, -1)
141 array([ 1, -1])
142 >>> P.polyval(1, P.polyline(1, -1)) # should be 0
Expected:
0.0
Got:
np.float64(0.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/polynomial/polynomial.py:142: DocTestFailure
____________ [doctest] numpy.polynomial.polynomial.Polynomial._val _____________
725
726 Notes
727 -----
728 The evaluation uses Horner's method.
729
730 Examples
731 --------
732 >>> import numpy as np
733 >>> from numpy.polynomial.polynomial import polyval
734 >>> polyval(1, [1,2,3])
Expected:
6.0
Got:
np.float64(6.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/polynomial/polynomial.py:734: DocTestFailure
_______________ [doctest] numpy.polynomial.polynomial.polyval2d ________________
899 Notes
900 -----
901
902 .. versionadded:: 1.7.0
903
904 Examples
905 --------
906 >>> from numpy.polynomial import polynomial as P
907 >>> c = ((1, 2, 3), (4, 5, 6))
908 >>> P.polyval2d(1, 1, c)
Expected:
21.0
Got:
np.float64(21.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/polynomial/polynomial.py:908: DocTestFailure
_______________ [doctest] numpy.polynomial.polynomial.polyval3d ________________
1018 Notes
1019 -----
1020
1021 .. versionadded:: 1.7.0
1022
1023 Examples
1024 --------
1025 >>> from numpy.polynomial import polynomial as P
1026 >>> c = ((1, 2, 3), (4, 5, 6), (7, 8, 9))
1027 >>> P.polyval3d(1, 1, 1, c)
Expected:
45.0
Got:
np.float64(45.0)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/polynomial/polynomial.py:1027: DocTestFailure
______________________ [doctest] numpy.random.standard_t _______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.mean(intake)
Expected:
6753.636363636364
Got:
np.float64(6753.636363636364)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/random/mtrand.cpython-311-x86_64-linux-gnu.so:None: DocTestFailure
________________________ [doctest] numpy.random.uniform ________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.all(s >= -1)
Expected:
True
Got:
np.True_

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/random/mtrand.cpython-311-x86_64-linux-gnu.so:None: DocTestFailure
_________________ [doctest] numpy.random.Generator.standard_t __________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.mean(intake)
Expected:
6753.636363636364
Got:
np.float64(6753.636363636364)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/random/generator.cpython-311-x86_64-linux-gnu.so:None: DocTestFailure
___________________ [doctest] numpy.random.Generator.uniform ___________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.all(s >= -1)
Expected:
True
Got:
np.True

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/random/_generator.cpython-311-x86_64-linux-gnu.so:None: DocTestFailure
________________ [doctest] numpy.random.RandomState.standard_t _________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.mean(intake)
Expected:
6753.636363636364
Got:
np.float64(6753.636363636364)

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/random/mtrand.cpython-311-x86_64-linux-gnu.so:None: DocTestFailure
__________________ [doctest] numpy.random.RandomState.uniform __________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.all(s >= -1)
Expected:
True
Got:
np.True_

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/random/mtrand.cpython-311-x86_64-linux-gnu.so:None: DocTestFailure
_____________________ [doctest] numpy.random.SeedSequence ______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.all(sq1.generate_state(10) == sq2.generate_state(10))
Expected:
True
Got:
np.True_

/home/br/repos/numpy/build-install/usr/lib/python3.11/site-packages/numpy/random/bit_generator.cpython-311-x86_64-linux-gnu.so:None: DocTestFailure
_________________________ [doctest] numpy.strings.add __________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.add(1.0, 4.0)
Expected:
5.0
Got:
np.float64(5.0)

None:None: DocTestFailure
_______________________ [doctest] numpy.strings.islower ________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.strings.islower("GHC")
Expected:
array(False)
Got:
np.False_

None:None: DocTestFailure
_______________________ [doctest] numpy.strings.isupper ________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.strings.isupper("GHC")
Expected:
array(True)
Got:
np.True_

None:None: DocTestFailure
_______________________ [doctest] numpy.strings.istitle ________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> np.strings.istitle("Numpy Is Great")
Expected:
array(True)
Got:
np.True_

None:None: DocTestFailure
=========================== short test summary info ============================
FAILED numpy/init.py::numpy.fabs
FAILED numpy/init.py::numpy.fix
FAILED numpy/init.py::numpy.bitwise_left_shift
FAILED numpy/init.py::numpy.var
FAILED numpy/init.py::numpy.trapezoid
FAILED numpy/init.py::numpy.nanprod
FAILED numpy/init.py::numpy.left_shift
FAILED numpy/init.py::numpy.minimum
FAILED numpy/init.py::numpy.trace
FAILED numpy/init.py::numpy.polyint
FAILED numpy/init.py::numpy.cosh
FAILED numpy/init.py::numpy.nansum
FAILED numpy/init.py::numpy.sign
FAILED numpy/init.py::numpy.conjugate
FAILED numpy/init.py::numpy.nanquantile
FAILED numpy/init.py::numpy.polyder
FAILED numpy/init.py::numpy.logical_xor
FAILED numpy/init.py::numpy.divide
FAILED numpy/init.py::numpy.logaddexp
FAILED numpy/init.py::numpy.cumulative_sum
FAILED numpy/init.py::numpy.nanvar
FAILED numpy/init.py::numpy.isfinite
FAILED numpy/init.py::numpy.matmul
FAILED numpy/init.py::numpy.isinf
FAILED numpy/init.py::numpy.nanargmax
FAILED numpy/init.py::numpy.dot
FAILED numpy/init.py::numpy.sum
FAILED numpy/init.py::numpy.nanmean
FAILED numpy/init.py::numpy.str_
FAILED numpy/init.py::numpy.rad2deg
FAILED numpy/init.py::numpy.min
FAILED numpy/init.py::numpy.polyval
FAILED numpy/init.py::numpy.flipud
FAILED numpy/init.py::numpy.bincount
FAILED numpy/init.py::numpy.ufunc.reduce
FAILED numpy/init.py::numpy.vdot
FAILED numpy/init.py::numpy.isnan
FAILED numpy/init.py::numpy.lcm
FAILED numpy/init.py::numpy.reciprocal
FAILED numpy/init.py::numpy.isnat
FAILED numpy/init.py::numpy.signbit
FAILED numpy/init.py::numpy.bitwise_and
FAILED numpy/init.py::numpy.maximum
FAILED numpy/init.py::numpy.spacing
FAILED numpy/init.py::numpy.std
FAILED numpy/init.py::numpy.arccosh
FAILED numpy/init.py::numpy.bitwise_or
FAILED numpy/init.py::numpy.logical_not
FAILED numpy/init.py::numpy.nanpercentile
FAILED numpy/init.py::numpy.acosh
FAILED numpy/init.py::numpy.any
FAILED numpy/init.py::numpy.poly1d
FAILED numpy/init.py::numpy.arcsin
FAILED numpy/init.py::numpy.max
FAILED numpy/init.py::numpy.average
FAILED numpy/init.py::numpy.copy
FAILED numpy/init.py::numpy.flip
FAILED numpy/init.py::numpy.multiply
FAILED numpy/init.py::numpy.logical_or
FAILED numpy/init.py::numpy.cumsum
FAILED numpy/init.py::numpy.expm1
FAILED numpy/init.py::numpy.sin
FAILED numpy/init.py::numpy.prod
FAILED numpy/init.py::numpy.round
FAILED numpy/init.py::numpy.nanmin
FAILED numpy/init.py::numpy.gcd
FAILED numpy/init.py::numpy.busday_count
FAILED numpy/init.py::numpy.nan_to_num
FAILED numpy/init.py::numpy.argmin
FAILED numpy/init.py::numpy.einsum
FAILED numpy/init.py::numpy.fliplr
FAILED numpy/init.py::numpy.nextafter
FAILED numpy/init.py::numpy.interp
FAILED numpy/init.py::numpy.true_divide
FAILED numpy/init.py::numpy.add
FAILED numpy/init.py::numpy.logaddexp2
FAILED numpy/init.py::numpy.sinh
FAILED numpy/init.py::numpy.isposinf
FAILED numpy/init.py::numpy.copysign
FAILED numpy/init.py::numpy.log1p
FAILED numpy/init.py::numpy.mean
FAILED numpy/init.py::numpy.abs
FAILED numpy/init.py::numpy.conj
FAILED numpy/init.py::numpy.bitwise_right_shift
FAILED numpy/init.py::numpy.ravel_multi_index
FAILED numpy/init.py::numpy.floor_divide
FAILED numpy/init.py::numpy.inner
FAILED numpy/init.py::numpy.histogram
FAILED numpy/init.py::numpy.nanargmin
FAILED numpy/init.py::numpy.deg2rad
FAILED numpy/init.py::numpy.all
FAILED numpy/init.py::numpy.nanstd
FAILED numpy/init.py::numpy.isneginf
FAILED numpy/init.py::numpy.kron
FAILED numpy/init.py::numpy.searchsorted
FAILED numpy/init.py::numpy.degrees
FAILED numpy/init.py::numpy.subtract
FAILED numpy/init.py::numpy.percentile
FAILED numpy/init.py::numpy.asin
FAILED numpy/init.py::numpy.bitwise_xor
FAILED numpy/init.py::numpy.nanmedian
FAILED numpy/init.py::numpy.quantile
FAILED numpy/init.py::numpy.logical_and
FAILED numpy/init.py::numpy.angle
FAILED numpy/init.py::numpy.ptp
FAILED numpy/init.py::numpy.right_shift
FAILED numpy/init.py::numpy.nanmax
FAILED numpy/init.py::numpy.squeeze
FAILED numpy/init.py::numpy.argmax
FAILED numpy/init.py::numpy.absolute
FAILED numpy/char/init.py::numpy.char.add
FAILED numpy/char/init.py::numpy.char.islower
FAILED numpy/char/init.py::numpy.char.istitle
FAILED numpy/char/init.py::numpy.char.isupper
FAILED numpy/core/defchararray.py::numpy.core.defchararray.add
FAILED numpy/core/defchararray.py::numpy.core.defchararray.islower
FAILED numpy/core/defchararray.py::numpy.core.defchararray.istitle
FAILED numpy/core/defchararray.py::numpy.core.defchararray.isupper
FAILED numpy/core/einsumfunc.py::numpy.core.einsumfunc.einsum
FAILED numpy/core/fromnumeric.py::numpy.core.fromnumeric.all
FAILED numpy/core/fromnumeric.py::numpy.core.fromnumeric.any
FAILED numpy/core/fromnumeric.py::numpy.core.fromnumeric.argmax
FAILED numpy/core/fromnumeric.py::numpy.core.fromnumeric.argmin
FAILED numpy/core/fromnumeric.py::numpy.core.fromnumeric.cumsum
FAILED numpy/core/fromnumeric.py::numpy.core.fromnumeric.cumulative_sum
FAILED numpy/core/fromnumeric.py::numpy.core.fromnumeric.mean
FAILED numpy/core/fromnumeric.py::numpy.core.fromnumeric.max
FAILED numpy/core/fromnumeric.py::numpy.core.fromnumeric.min
FAILED numpy/core/fromnumeric.py::numpy.core.fromnumeric.prod
FAILED numpy/core/fromnumeric.py::numpy.core.fromnumeric.ptp
FAILED numpy/core/fromnumeric.py::numpy.core.fromnumeric.round
FAILED numpy/core/fromnumeric.py::numpy.core.fromnumeric.searchsorted
FAILED numpy/core/fromnumeric.py::numpy.core.fromnumeric.squeeze
FAILED numpy/core/fromnumeric.py::numpy.core.fromnumeric.std
FAILED numpy/core/fromnumeric.py::numpy.core.fromnumeric.sum
FAILED numpy/core/fromnumeric.py::numpy.core.fromnumeric.trace
FAILED numpy/core/fromnumeric.py::numpy.core.fromnumeric.var
FAILED numpy/core/multiarray.py::numpy.core.multiarray.bincount
FAILED numpy/core/multiarray.py::numpy.core.multiarray.busday_count
FAILED numpy/core/multiarray.py::numpy.core.multiarray.c_einsum
FAILED numpy/core/multiarray.py::numpy.core.multiarray.dot
FAILED numpy/core/multiarray.py::numpy.core.multiarray.inner
FAILED numpy/core/multiarray.py::numpy.core.multiarray.matmul
FAILED numpy/core/multiarray.py::numpy.core.multiarray.ravel_multi_index
FAILED numpy/core/multiarray.py::numpy.core.multiarray.vdot
FAILED numpy/core/numeric.py::numpy.core.numeric.ufunc.reduce
FAILED numpy/core/numeric.py::numpy.core.numeric.inner
FAILED numpy/core/numeric.py::numpy.core.numeric.dot
FAILED numpy/core/numeric.py::numpy.core.numeric.vdot
FAILED numpy/core/numeric.py::numpy.core.numeric.matmul
FAILED numpy/core/numeric.py::numpy.core.numeric.all
FAILED numpy/core/numeric.py::numpy.core.numeric.any
FAILED numpy/core/numeric.py::numpy.core.numeric.argmax
FAILED numpy/core/numeric.py::numpy.core.numeric.argmin
FAILED numpy/core/numeric.py::numpy.core.numeric.cumsum
FAILED numpy/core/numeric.py::numpy.core.numeric.cumulative_sum
FAILED numpy/core/numeric.py::numpy.core.numeric.mean
FAILED numpy/core/numeric.py::numpy.core.numeric.max
FAILED numpy/core/numeric.py::numpy.core.numeric.min
FAILED numpy/core/numeric.py::numpy.core.numeric.prod
FAILED numpy/core/numeric.py::numpy.core.numeric.ptp
FAILED numpy/core/numeric.py::numpy.core.numeric.round
FAILED numpy/core/numeric.py::numpy.core.numeric.searchsorted
FAILED numpy/core/numeric.py::numpy.core.numeric.squeeze
FAILED numpy/core/numeric.py::numpy.core.numeric.std
FAILED numpy/core/numeric.py::numpy.core.numeric.sum
FAILED numpy/core/numeric.py::numpy.core.numeric.trace
FAILED numpy/core/numeric.py::numpy.core.numeric.var
FAILED numpy/core/numeric.py::numpy.core.numeric.absolute
FAILED numpy/core/numeric.py::numpy.core.numeric.add
FAILED numpy/core/numeric.py::numpy.core.numeric.arccosh
FAILED numpy/core/numeric.py::numpy.core.numeric.arcsin
FAILED numpy/core/numeric.py::numpy.core.numeric.bitwise_and
FAILED numpy/core/numeric.py::numpy.core.numeric.bitwise_or
FAILED numpy/core/numeric.py::numpy.core.numeric.bitwise_xor
FAILED numpy/core/numeric.py::numpy.core.numeric.conj
FAILED numpy/core/numeric.py::numpy.core.numeric.conjugate
FAILED numpy/core/numeric.py::numpy.core.numeric.copysign
FAILED numpy/core/numeric.py::numpy.core.numeric.cosh
FAILED numpy/core/numeric.py::numpy.core.numeric.deg2rad
FAILED numpy/core/numeric.py::numpy.core.numeric.degrees
FAILED numpy/core/numeric.py::numpy.core.numeric.divide
FAILED numpy/core/numeric.py::numpy.core.numeric.expm1
FAILED numpy/core/numeric.py::numpy.core.numeric.fabs
FAILED numpy/core/numeric.py::numpy.core.numeric.floor_divide
FAILED numpy/core/numeric.py::numpy.core.numeric.gcd
FAILED numpy/core/numeric.py::numpy.core.numeric.isfinite
FAILED numpy/core/numeric.py::numpy.core.numeric.isinf
FAILED numpy/core/numeric.py::numpy.core.numeric.isnan
FAILED numpy/core/numeric.py::numpy.core.numeric.isnat
FAILED numpy/core/numeric.py::numpy.core.numeric.lcm
FAILED numpy/core/numeric.py::numpy.core.numeric.left_shift
FAILED numpy/core/numeric.py::numpy.core.numeric.log1p
FAILED numpy/core/numeric.py::numpy.core.numeric.logaddexp
FAILED numpy/core/numeric.py::numpy.core.numeric.logaddexp2
FAILED numpy/core/numeric.py::numpy.core.numeric.logical_and
FAILED numpy/core/numeric.py::numpy.core.numeric.logical_not
FAILED numpy/core/numeric.py::numpy.core.numeric.logical_or
FAILED numpy/core/numeric.py::numpy.core.numeric.logical_xor
FAILED numpy/core/numeric.py::numpy.core.numeric.maximum
FAILED numpy/core/numeric.py::numpy.core.numeric.minimum
FAILED numpy/core/numeric.py::numpy.core.numeric.multiply
FAILED numpy/core/numeric.py::numpy.core.numeric.nextafter
FAILED numpy/core/numeric.py::numpy.core.numeric.rad2deg
FAILED numpy/core/numeric.py::numpy.core.numeric.reciprocal
FAILED numpy/core/numeric.py::numpy.core.numeric.right_shift
FAILED numpy/core/numeric.py::numpy.core.numeric.sign
FAILED numpy/core/numeric.py::numpy.core.numeric.signbit
FAILED numpy/core/numeric.py::numpy.core.numeric.sin
FAILED numpy/core/numeric.py::numpy.core.numeric.sinh
FAILED numpy/core/numeric.py::numpy.core.numeric.spacing
FAILED numpy/core/numeric.py::numpy.core.numeric.subtract
FAILED numpy/core/numeric.py::numpy.core.numeric.true_divide
FAILED numpy/core/numeric.py::numpy.core.numeric.busday_count
FAILED numpy/core/numeric.py::numpy.core.numeric.str_
FAILED numpy/core/numerictypes.py::numpy.core.numerictypes.busday_count
FAILED numpy/core/numerictypes.py::numpy.core.numerictypes.str_
FAILED numpy/core/umath.py::numpy.core.umath.absolute
FAILED numpy/core/umath.py::numpy.core.umath.add
FAILED numpy/core/umath.py::numpy.core.umath.arccosh
FAILED numpy/core/umath.py::numpy.core.umath.arcsin
FAILED numpy/core/umath.py::numpy.core.umath.bitwise_and
FAILED numpy/core/umath.py::numpy.core.umath.bitwise_or
FAILED numpy/core/umath.py::numpy.core.umath.bitwise_xor
FAILED numpy/core/umath.py::numpy.core.umath.conj
FAILED numpy/core/umath.py::numpy.core.umath.conjugate
FAILED numpy/core/umath.py::numpy.core.umath.copysign
FAILED numpy/core/umath.py::numpy.core.umath.cosh
FAILED numpy/core/umath.py::numpy.core.umath.deg2rad
FAILED numpy/core/umath.py::numpy.core.umath.degrees
FAILED numpy/core/umath.py::numpy.core.umath.divide
FAILED numpy/core/umath.py::numpy.core.umath.expm1
FAILED numpy/core/umath.py::numpy.core.umath.fabs
FAILED numpy/core/umath.py::numpy.core.umath.floor_divide
FAILED numpy/core/umath.py::numpy.core.umath.gcd
FAILED numpy/core/umath.py::numpy.core.umath.isfinite
FAILED numpy/core/umath.py::numpy.core.umath.isinf
FAILED numpy/core/umath.py::numpy.core.umath.isnan
FAILED numpy/core/umath.py::numpy.core.umath.isnat
FAILED numpy/core/umath.py::numpy.core.umath.lcm
FAILED numpy/core/umath.py::numpy.core.umath.left_shift
FAILED numpy/core/umath.py::numpy.core.umath.log1p
FAILED numpy/core/umath.py::numpy.core.umath.logaddexp
FAILED numpy/core/umath.py::numpy.core.umath.logaddexp2
FAILED numpy/core/umath.py::numpy.core.umath.logical_and
FAILED numpy/core/umath.py::numpy.core.umath.logical_not
FAILED numpy/core/umath.py::numpy.core.umath.logical_or
FAILED numpy/core/umath.py::numpy.core.umath.logical_xor
FAILED numpy/core/umath.py::numpy.core.umath.maximum
FAILED numpy/core/umath.py::numpy.core.umath.minimum
FAILED numpy/core/umath.py::numpy.core.umath.multiply
FAILED numpy/core/umath.py::numpy.core.umath.nextafter
FAILED numpy/core/umath.py::numpy.core.umath.rad2deg
FAILED numpy/core/umath.py::numpy.core.umath.reciprocal
FAILED numpy/core/umath.py::numpy.core.umath.right_shift
FAILED numpy/core/umath.py::numpy.core.umath.sign
FAILED numpy/core/umath.py::numpy.core.umath.signbit
FAILED numpy/core/umath.py::numpy.core.umath.sin
FAILED numpy/core/umath.py::numpy.core.umath.sinh
FAILED numpy/core/umath.py::numpy.core.umath.spacing
FAILED numpy/core/umath.py::numpy.core.umath.subtract
FAILED numpy/core/umath.py::numpy.core.umath.true_divide
FAILED numpy/lib/scimath.py::numpy.lib.scimath.sqrt
FAILED numpy/lib/scimath.py::numpy.lib.scimath.log
FAILED numpy/lib/scimath.py::numpy.lib.scimath.log2
FAILED numpy/lib/scimath.py::numpy.lib.scimath.log10
FAILED numpy/lib/scimath.py::numpy.lib.scimath.power
FAILED numpy/lib/scimath.py::numpy.lib.scimath.arccos
FAILED numpy/lib/scimath.py::numpy.lib.scimath.arcsin
FAILED numpy/lib/scimath.py::numpy.lib.scimath.arctanh
FAILED numpy/lib/scimath.py::numpy.lib.scimath
FAILED numpy/linalg/init.py::numpy.linalg.slogdet
FAILED numpy/linalg/init.py::numpy.linalg.norm
FAILED numpy/linalg/init.py::numpy.linalg.cond
FAILED numpy/linalg/init.py::numpy.linalg.matrix_rank
FAILED numpy/linalg/init.py::numpy.linalg.trace
FAILED numpy/linalg/init.py::numpy.linalg.matmul
FAILED numpy/linalg/init.py::numpy.linalg.matrix_norm
FAILED numpy/linalg/init.py::numpy.linalg.vector_norm
FAILED numpy/linalg/linalg.py::numpy.linalg.linalg.slogdet
FAILED numpy/linalg/linalg.py::numpy.linalg.linalg.norm
FAILED numpy/linalg/linalg.py::numpy.linalg.linalg.cond
FAILED numpy/linalg/linalg.py::numpy.linalg.linalg.matrix_rank
FAILED numpy/linalg/linalg.py::numpy.linalg.linalg.trace
FAILED numpy/linalg/linalg.py::numpy.linalg.linalg.matmul
FAILED numpy/linalg/linalg.py::numpy.linalg.linalg.matrix_norm
FAILED numpy/linalg/linalg.py::numpy.linalg.linalg.vector_norm
FAILED numpy/ma/init.py::numpy.ma.abs
FAILED numpy/ma/init.py::numpy.ma.absolute
FAILED numpy/ma/init.py::numpy.ma.add
FAILED numpy/ma/init.py::numpy.ma.all
FAILED numpy/ma/init.py::numpy.ma.allclose
FAILED numpy/ma/init.py::numpy.ma.allequal
FAILED numpy/ma/init.py::numpy.ma.angle
FAILED numpy/ma/init.py::numpy.ma.arccosh
FAILED numpy/ma/init.py::numpy.ma.arcsin
FAILED numpy/ma/init.py::numpy.ma.argmax
FAILED numpy/ma/init.py::numpy.ma.bitwise_and
FAILED numpy/ma/init.py::numpy.ma.bitwise_or
FAILED numpy/ma/init.py::numpy.ma.bitwise_xor
FAILED numpy/ma/init.py::numpy.ma.common_fill_value
FAILED numpy/ma/init.py::numpy.ma.conjugate
FAILED numpy/ma/init.py::numpy.ma.cosh
FAILED numpy/ma/init.py::numpy.ma.count
FAILED numpy/ma/init.py::numpy.ma.divide
FAILED numpy/ma/init.py::numpy.ma.fabs
FAILED numpy/ma/init.py::numpy.ma.floor_divide
FAILED numpy/ma/init.py::numpy.ma.getmask
FAILED numpy/ma/init.py::numpy.ma.inner
FAILED numpy/ma/init.py::numpy.ma.innerproduct
FAILED numpy/ma/init.py::numpy.ma.logical_and
FAILED numpy/ma/init.py::numpy.ma.logical_not
FAILED numpy/ma/init.py::numpy.ma.logical_or
FAILED numpy/ma/init.py::numpy.ma.logical_xor
FAILED numpy/ma/init.py::numpy.ma.make_mask
FAILED numpy/ma/init.py::numpy.ma.max
FAILED numpy/ma/init.py::numpy.ma.maximum
FAILED numpy/ma/init.py::numpy.ma.mean
FAILED numpy/ma/init.py::numpy.ma.min
FAILED numpy/ma/init.py::numpy.ma.minimum
FAILED numpy/ma/init.py::numpy.ma.multiply
FAILED numpy/ma/init.py::numpy.ma.ptp
FAILED numpy/ma/init.py::numpy.ma.sin
FAILED numpy/ma/init.py::numpy.ma.sinh
FAILED numpy/ma/init.py::numpy.ma.squeeze
FAILED numpy/ma/init.py::numpy.ma.subtract
FAILED numpy/ma/init.py::numpy.ma.sum
FAILED numpy/ma/init.py::numpy.ma.true_divide
FAILED numpy/ma/init.py::numpy.ma.var
FAILED numpy/ma/init.py::numpy.ma.average
FAILED numpy/ma/init.py::numpy.ma.count_masked
FAILED numpy/ma/init.py::numpy.ma.median
FAILED numpy/ma/init.py::numpy.ma
FAILED numpy/ma/core.py::numpy.ma.core.abs
FAILED numpy/ma/core.py::numpy.ma.core.absolute
FAILED numpy/ma/core.py::numpy.ma.core.add
FAILED numpy/ma/core.py::numpy.ma.core.all
FAILED numpy/ma/core.py::numpy.ma.core.allclose
FAILED numpy/ma/core.py::numpy.ma.core.allequal
FAILED numpy/ma/core.py::numpy.ma.core.angle
FAILED numpy/ma/core.py::numpy.ma.core.arccosh
FAILED numpy/ma/core.py::numpy.ma.core.arcsin
FAILED numpy/ma/core.py::numpy.ma.core.argmax
FAILED numpy/ma/core.py::numpy.ma.core.bitwise_and
FAILED numpy/ma/core.py::numpy.ma.core.bitwise_or
FAILED numpy/ma/core.py::numpy.ma.core.bitwise_xor
FAILED numpy/ma/core.py::numpy.ma.core.common_fill_value
FAILED numpy/ma/core.py::numpy.ma.core.conjugate
FAILED numpy/ma/core.py::numpy.ma.core.cosh
FAILED numpy/ma/core.py::numpy.ma.core.count
FAILED numpy/ma/core.py::numpy.ma.core.divide
FAILED numpy/ma/core.py::numpy.ma.core.fabs
FAILED numpy/ma/core.py::numpy.ma.core.floor_divide
FAILED numpy/ma/core.py::numpy.ma.core.getmask
FAILED numpy/ma/core.py::numpy.ma.core.inner
FAILED numpy/ma/core.py::numpy.ma.core.innerproduct
FAILED numpy/ma/core.py::numpy.ma.core.logical_and
FAILED numpy/ma/core.py::numpy.ma.core.logical_not
FAILED numpy/ma/core.py::numpy.ma.core.logical_or
FAILED numpy/ma/core.py::numpy.ma.core.logical_xor
FAILED numpy/ma/core.py::numpy.ma.core.make_mask
FAILED numpy/ma/core.py::numpy.ma.core.max
FAILED numpy/ma/core.py::numpy.ma.core.maximum
FAILED numpy/ma/core.py::numpy.ma.core.mean
FAILED numpy/ma/core.py::numpy.ma.core.min
FAILED numpy/ma/core.py::numpy.ma.core.minimum
FAILED numpy/ma/core.py::numpy.ma.core.multiply
FAILED numpy/ma/core.py::numpy.ma.core.ptp
FAILED numpy/ma/core.py::numpy.ma.core.sin
FAILED numpy/ma/core.py::numpy.ma.core.sinh
FAILED numpy/ma/core.py::numpy.ma.core.squeeze
FAILED numpy/ma/core.py::numpy.ma.core.subtract
FAILED numpy/ma/core.py::numpy.ma.core.sum
FAILED numpy/ma/core.py::numpy.ma.core.true_divide
FAILED numpy/ma/core.py::numpy.ma.core.var
FAILED numpy/ma/extras.py::numpy.ma.extras.average
FAILED numpy/ma/extras.py::numpy.ma.extras.count_masked
FAILED numpy/ma/extras.py::numpy.ma.extras.median
FAILED numpy/matlib.py::numpy.matlib.fabs
FAILED numpy/matlib.py::numpy.matlib.fix
FAILED numpy/matlib.py::numpy.matlib.bitwise_left_shift
FAILED numpy/matlib.py::numpy.matlib.var
FAILED numpy/matlib.py::numpy.matlib.trapezoid
FAILED numpy/matlib.py::numpy.matlib.nanprod
FAILED numpy/matlib.py::numpy.matlib.left_shift
FAILED numpy/matlib.py::numpy.matlib.minimum
FAILED numpy/matlib.py::numpy.matlib.trace
FAILED numpy/matlib.py::numpy.matlib.polyint
FAILED numpy/matlib.py::numpy.matlib.cosh
FAILED numpy/matlib.py::numpy.matlib.nansum
FAILED numpy/matlib.py::numpy.matlib.sign
FAILED numpy/matlib.py::numpy.matlib.conjugate
FAILED numpy/matlib.py::numpy.matlib.nanquantile
FAILED numpy/matlib.py::numpy.matlib.polyder
FAILED numpy/matlib.py::numpy.matlib.logical_xor
FAILED numpy/matlib.py::numpy.matlib.divide
FAILED numpy/matlib.py::numpy.matlib.logaddexp
FAILED numpy/matlib.py::numpy.matlib.cumulative_sum
FAILED numpy/matlib.py::numpy.matlib.nanvar
FAILED numpy/matlib.py::numpy.matlib.isfinite
FAILED numpy/matlib.py::numpy.matlib.matmul
FAILED numpy/matlib.py::numpy.matlib.isinf
FAILED numpy/matlib.py::numpy.matlib.nanargmax
FAILED numpy/matlib.py::numpy.matlib.dot
FAILED numpy/matlib.py::numpy.matlib.sum
FAILED numpy/matlib.py::numpy.matlib.nanmean
FAILED numpy/matlib.py::numpy.matlib.str_
FAILED numpy/matlib.py::numpy.matlib.rad2deg
FAILED numpy/matlib.py::numpy.matlib.min
FAILED numpy/matlib.py::numpy.matlib.polyval
FAILED numpy/matlib.py::numpy.matlib.flipud
FAILED numpy/matlib.py::numpy.matlib.bincount
FAILED numpy/matlib.py::numpy.matlib.ufunc.reduce
FAILED numpy/matlib.py::numpy.matlib.vdot
FAILED numpy/matlib.py::numpy.matlib.isnan
FAILED numpy/matlib.py::numpy.matlib.lcm
FAILED numpy/matlib.py::numpy.matlib.reciprocal
FAILED numpy/matlib.py::numpy.matlib.isnat
FAILED numpy/matlib.py::numpy.matlib.signbit
FAILED numpy/matlib.py::numpy.matlib.bitwise_and
FAILED numpy/matlib.py::numpy.matlib.maximum
FAILED numpy/matlib.py::numpy.matlib.spacing
FAILED numpy/matlib.py::numpy.matlib.std
FAILED numpy/matlib.py::numpy.matlib.arccosh
FAILED numpy/matlib.py::numpy.matlib.bitwise_or
FAILED numpy/matlib.py::numpy.matlib.logical_not
FAILED numpy/matlib.py::numpy.matlib.nanpercentile
FAILED numpy/matlib.py::numpy.matlib.acosh
FAILED numpy/matlib.py::numpy.matlib.any
FAILED numpy/matlib.py::numpy.matlib.poly1d
FAILED numpy/matlib.py::numpy.matlib.arcsin
FAILED numpy/matlib.py::numpy.matlib.max
FAILED numpy/matlib.py::numpy.matlib.average
FAILED numpy/matlib.py::numpy.matlib.copy
FAILED numpy/matlib.py::numpy.matlib.flip
FAILED numpy/matlib.py::numpy.matlib.multiply
FAILED numpy/matlib.py::numpy.matlib.logical_or
FAILED numpy/matlib.py::numpy.matlib.cumsum
FAILED numpy/matlib.py::numpy.matlib.expm1
FAILED numpy/matlib.py::numpy.matlib.sin
FAILED numpy/matlib.py::numpy.matlib.prod
FAILED numpy/matlib.py::numpy.matlib.round
FAILED numpy/matlib.py::numpy.matlib.nanmin
FAILED numpy/matlib.py::numpy.matlib.gcd
FAILED numpy/matlib.py::numpy.matlib.busday_count
FAILED numpy/matlib.py::numpy.matlib.nan_to_num
FAILED numpy/matlib.py::numpy.matlib.argmin
FAILED numpy/matlib.py::numpy.matlib.einsum
FAILED numpy/matlib.py::numpy.matlib.fliplr
FAILED numpy/matlib.py::numpy.matlib.nextafter
FAILED numpy/matlib.py::numpy.matlib.interp
FAILED numpy/matlib.py::numpy.matlib.true_divide
FAILED numpy/matlib.py::numpy.matlib.add
FAILED numpy/matlib.py::numpy.matlib.logaddexp2
FAILED numpy/matlib.py::numpy.matlib.sinh
FAILED numpy/matlib.py::numpy.matlib.isposinf
FAILED numpy/matlib.py::numpy.matlib.copysign
FAILED numpy/matlib.py::numpy.matlib.log1p
FAILED numpy/matlib.py::numpy.matlib.mean
FAILED numpy/matlib.py::numpy.matlib.abs
FAILED numpy/matlib.py::numpy.matlib.conj
FAILED numpy/matlib.py::numpy.matlib.bitwise_right_shift
FAILED numpy/matlib.py::numpy.matlib.ravel_multi_index
FAILED numpy/matlib.py::numpy.matlib.floor_divide
FAILED numpy/matlib.py::numpy.matlib.inner
FAILED numpy/matlib.py::numpy.matlib.histogram
FAILED numpy/matlib.py::numpy.matlib.nanargmin
FAILED numpy/matlib.py::numpy.matlib.deg2rad
FAILED numpy/matlib.py::numpy.matlib.all
FAILED numpy/matlib.py::numpy.matlib.nanstd
FAILED numpy/matlib.py::numpy.matlib.isneginf
FAILED numpy/matlib.py::numpy.matlib.kron
FAILED numpy/matlib.py::numpy.matlib.searchsorted
FAILED numpy/matlib.py::numpy.matlib.degrees
FAILED numpy/matlib.py::numpy.matlib.subtract
FAILED numpy/matlib.py::numpy.matlib.percentile
FAILED numpy/matlib.py::numpy.matlib.asin
FAILED numpy/matlib.py::numpy.matlib.bitwise_xor
FAILED numpy/matlib.py::numpy.matlib.nanmedian
FAILED numpy/matlib.py::numpy.matlib.quantile
FAILED numpy/matlib.py::numpy.matlib.logical_and
FAILED numpy/matlib.py::numpy.matlib.angle
FAILED numpy/matlib.py::numpy.matlib.ptp
FAILED numpy/matlib.py::numpy.matlib.right_shift
FAILED numpy/matlib.py::numpy.matlib.nanmax
FAILED numpy/matlib.py::numpy.matlib.squeeze
FAILED numpy/matlib.py::numpy.matlib.argmax
FAILED numpy/matlib.py::numpy.matlib.absolute
FAILED numpy/polynomial/init.py::numpy.polynomial.Polynomial._add
FAILED numpy/polynomial/init.py::numpy.polynomial.Polynomial._line
FAILED numpy/polynomial/init.py::numpy.polynomial.Polynomial._val
FAILED numpy/polynomial/init.py::numpy.polynomial.Chebyshev._line
FAILED numpy/polynomial/init.py::numpy.polynomial.Legendre._line
FAILED numpy/polynomial/init.py::numpy.polynomial.Hermite._line
FAILED numpy/polynomial/init.py::numpy.polynomial.Hermite._val
FAILED numpy/polynomial/init.py::numpy.polynomial.HermiteE._line
FAILED numpy/polynomial/init.py::numpy.polynomial.HermiteE._val
FAILED numpy/polynomial/init.py::numpy.polynomial.Laguerre._line
FAILED numpy/polynomial/init.py::numpy.polynomial.Laguerre._val
FAILED numpy/polynomial/chebyshev.py::numpy.polynomial.chebyshev.chebline
FAILED numpy/polynomial/chebyshev.py::numpy.polynomial.chebyshev.Chebyshev._line
FAILED numpy/polynomial/hermite.py::numpy.polynomial.hermite.hermline
FAILED numpy/polynomial/hermite.py::numpy.polynomial.hermite.hermval
FAILED numpy/polynomial/hermite.py::numpy.polynomial.hermite.Hermite._line
FAILED numpy/polynomial/hermite.py::numpy.polynomial.hermite.Hermite._val
FAILED numpy/polynomial/hermite_e.py::numpy.polynomial.hermite_e.hermeline
FAILED numpy/polynomial/hermite_e.py::numpy.polynomial.hermite_e.hermeval
FAILED numpy/polynomial/hermite_e.py::numpy.polynomial.hermite_e.HermiteE._line
FAILED numpy/polynomial/hermite_e.py::numpy.polynomial.hermite_e.HermiteE._val
FAILED numpy/polynomial/laguerre.py::numpy.polynomial.laguerre.lagline
FAILED numpy/polynomial/laguerre.py::numpy.polynomial.laguerre.lagval
FAILED numpy/polynomial/laguerre.py::numpy.polynomial.laguerre.Laguerre._line
FAILED numpy/polynomial/laguerre.py::numpy.polynomial.laguerre.Laguerre._val
FAILED numpy/polynomial/laguerre.py::numpy.polynomial.laguerre.lagval2d
FAILED numpy/polynomial/laguerre.py::numpy.polynomial.laguerre.lagval3d
FAILED numpy/polynomial/legendre.py::numpy.polynomial.legendre.legline
FAILED numpy/polynomial/legendre.py::numpy.polynomial.legendre.Legendre._line
FAILED numpy/polynomial/polynomial.py::numpy.polynomial.polynomial.polyline
FAILED numpy/polynomial/polynomial.py::numpy.polynomial.polynomial.polyadd
FAILED numpy/polynomial/polynomial.py::numpy.polynomial.polynomial.polyval
FAILED numpy/polynomial/polynomial.py::numpy.polynomial.polynomial.polyvalfromroots
FAILED numpy/polynomial/polynomial.py::numpy.polynomial.polynomial.Polynomial._add
FAILED numpy/polynomial/polynomial.py::numpy.polynomial.polynomial.Polynomial._line
FAILED numpy/polynomial/polynomial.py::numpy.polynomial.polynomial.Polynomial._val
FAILED numpy/polynomial/polynomial.py::numpy.polynomial.polynomial.polyval2d
FAILED numpy/polynomial/polynomial.py::numpy.polynomial.polynomial.polyval3d
FAILED numpy/random/init.py::numpy.random.standard_t
FAILED numpy/random/init.py::numpy.random.uniform
FAILED numpy/random/init.py::numpy.random.Generator.standard_t
FAILED numpy/random/init.py::numpy.random.Generator.uniform
FAILED numpy/random/init.py::numpy.random.RandomState.standard_t
FAILED numpy/random/init.py::numpy.random.RandomState.uniform
FAILED numpy/random/init.py::numpy.random.SeedSequence
FAILED numpy/strings/init.py::numpy.strings.add
FAILED numpy/strings/init.py::numpy.strings.islower
FAILED numpy/strings/init.py::numpy.strings.isupper
FAILED numpy/strings/init.py::numpy.strings.istitle
================= 537 failed, 2171 passed, 7 skipped in 18.29s =================

EDIT: here's a branch with the patch, https://github.com/scipy/scipy_doctest/tree/scalar_repr_flagger

@ev-br
Copy link
Member Author

ev-br commented Dec 16, 2024

#172 implemented a strict_check flag in DTConfig, which, when True, distinguishes np.float64(3.0) from 3.0.

Both numpy and scipy have this flag on in their respective configs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested some day
Projects
None yet
Development

No branches or pull requests

1 participant