From: Daniel W. <dan...@gm...> - 2008-09-29 19:23:02
|
On Fri, Sep 26, 2008 at 9:42 PM, <dx...@my...> wrote: > Hi, > > I understand pysparse is updated to work with numpy (vs. old numeric) > since version 1.0. My question is, > > 1. Will ver 1.01 has the same syntax as ver 0.34? Essential, yes. The main difference is that everything is imported under the "pysparse" umbrella. You will have to change your code form >>> import pysparse_module to >>> import pysparse.pysparse_module as pysparse_module This change eradicated the name space pollution and cleaned up site-packages. > 2. Do I have to change my old code that works with ver 0.34 in order > to use ver 1.01 ? Yes as outlined above. > 3. Does ver 1.01 still work with numeric? Yes, at least it is designed to. You need to specify that you want to use Numeric in setup.py. > I've been using 0.34.032 and pretty happy with it, so I'm a little > worried the compatibility issues that may take place after upgrading > pysparse to ver 1.01. There is no added functionality so it may not be worth it. The changes were required to stay current with the rest of the scientific python community. -- Daniel Wheeler |