numpy linalg

Hey Travis,

I was just browsing your latest numerix commit and had two questions

elif which[0] == "numpy":
    from numpy.linalg import *
    try:
        from numpy.linalg.old import *
    except:
        pass

is this expected to work with numpy <0.9.6 as well as the latest
release, or just the latest? I'm happy either way, but just want to
know how to advise the users on which numpy versions are supported.

And on the try/except, would it suffice to just catch an ImportError?
We've been bitten before on these catchall exceptions.

Thanks
JDH

John Hunter wrote:

Hey Travis,

I was just browsing your latest numerix commit and had two questions

elif which[0] == "numpy":
    from numpy.linalg import *
    try:
        from numpy.linalg.old import *
    except:
        pass

is this expected to work with numpy <0.9.6 as well as the latest
release, or just the latest? I'm happy either way, but just want to
know how to advise the users on which numpy versions are supported.

It should work with older versions, too. This change moved the Numeric
LinearAlgebra-compatibility aliases into numpy.linalg.old . If numpy.linalg.old
doesn't exist because numpy is not current, then the aliases should still be in
numpy.linalg .

And on the try/except, would it suffice to just catch an ImportError?
We've been bitten before on these catchall exceptions.

Yes, I believe so.

···

--
Robert Kern
robert.kern@...149...

"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