[Numpy-discussion] Undefined wrap in linalg.py:tensorsolve.py

2008-06-30 Thread Alan McIntyre
While I was working on the doctest tweaks, I ran across a doctest that
failed because tensorsolve uses a function wrap that's not defined.
It seems that I should make the following change to fix it (at the
start of tensorsolve's code) :

-a = asarray(a)
+a,wrap = _makearray(a)

Doing so seems to make the example run, but I just wanted to see if
this was the appropriate thing to do.

Thanks,
Alan
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] Undefined wrap in linalg.py:tensorsolve.py

2008-06-30 Thread Robert Kern
On Mon, Jun 30, 2008 at 12:17, Alan McIntyre [EMAIL PROTECTED] wrote:
 While I was working on the doctest tweaks, I ran across a doctest that
 failed because tensorsolve uses a function wrap that's not defined.
 It seems that I should make the following change to fix it (at the
 start of tensorsolve's code) :

 -a = asarray(a)
 +a,wrap = _makearray(a)

 Doing so seems to make the example run, but I just wanted to see if
 this was the appropriate thing to do.

It is.

-- 
Robert Kern

I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth.
 -- Umberto Eco
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion