You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can you make algopy a required package. This UTMP was defaulting to None when I ran
import doctest
import numdifftools as nd
nd.test('--doctest-modules', '--disable-warnings')
I did reach out to [email protected] who maintains algopy. I asked that he
comment out in its 'init.py' file
#testing
#from numpy.testing import Tester
#test = Tester().test
Sebastian asked that I open this: b45ch1/algopy#56
Because numpy no longer has Tester. Thus ' import algopy' was failing. And UTPM was defaulting to None.
For your info...to run
import doctest
import numdifftools
nd.test('--doctest-modules', '--disable-warnings')
=============== 164 passed, 8 skipped, 1369 warnings in 42.86s ================
To get there I also had to comment out the following code in numpy file function_base.py line 4276
if a.dtype.kind == "c":
raise TypeError("a must be an array of real numbers")
So a scattering of issues......
The text was updated successfully, but these errors were encountered:
nicholasferguson
changed the title
code that imports algopy in nd
code that imports algopy in numdifftools nd_algopy.py
Jun 6, 2024
My env
Python 3.11.6
Sympy 1.13.dev
Windows 10 Pro
OS Build: 19045.4412
numpy 1.26.4
algopy 0.5.7
===============
This code in numdifftools nd_algopy.py line 61
try:
import algopy
from algopy import UTPM
except ImportError:
UTPM = algopy = None
Can you make algopy a required package. This UTMP was defaulting to None when I ran
import doctest
import numdifftools as nd
nd.test('--doctest-modules', '--disable-warnings')
I did reach out to [email protected] who maintains algopy. I asked that he
comment out in its 'init.py' file
#testing
#from numpy.testing import Tester
#test = Tester().test
Sebastian asked that I open this:
b45ch1/algopy#56
Because numpy no longer has Tester. Thus ' import algopy' was failing. And UTPM was defaulting to None.
For your info...to run
import doctest
import numdifftools
nd.test('--doctest-modules', '--disable-warnings')
=============== 164 passed, 8 skipped, 1369 warnings in 42.86s ================
To get there I also had to comment out the following code in numpy file function_base.py line 4276
if a.dtype.kind == "c":
raise TypeError("a must be an array of real numbers")
So a scattering of issues......
The text was updated successfully, but these errors were encountered: