[Numpy-discussion] Simple way to launch python processes?

2011-12-07 Thread Lou Pecora
have a Mac Pro running Mac OS X 10.6. If there is a better forum to ask this question, please let me know.  Thanks for any advice.   -- Lou Pecora, my views are my own.___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org

Re: [Numpy-discussion] Simple way to launch python processes?

2011-12-07 Thread Lou Pecora
. -=- Olivier Thank you.   -- Lou Pecora, my views are my own. ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Simple way to launch python processes?

2011-12-07 Thread Lou Pecora
-- Wow.  I will have to digest that, but thank you.   -- Lou Pecora, my views are my own. ___ NumPy-Discussion mailing

Re: [Numpy-discussion] SVD does not converge on clean matrix

2011-08-14 Thread Lou Pecora
.  It was just a test and it worked.   You could also change the underlying C or Fortran code, but you then have to recompile everything in numpy.  I wasn't that brave. -- Lou Pecora, my views are my own. ___ NumPy-Discussion mailing list NumPy-Discussion

Re: [Numpy-discussion] What Requires C and what is just python

2011-03-20 Thread Lou Pecora
. The installation contains a LOT of python stuff (including all the packages mentioned here) and you use it just like any other installation except you need to point to the sage folder. There are examples in the documentation. -- Lou Pecora, my views are my own

[Numpy-discussion] Change in Python/Numpy numerics with Py version 2.6 ?

2010-11-12 Thread Lou Pecora
if there are other changes that I should be aware of. Does anyone know the origin of the change above or other differences in the handling of numerics between the two versions? Thanks for any insight. -- Lou Pecora, my views are my own. ___ NumPy

Re: [Numpy-discussion] Change in Python/Numpy numerics with Py version 2.6 ?

2010-11-12 Thread Lou Pecora
the reason I asked about numpy. I know I should change this. But your explanation sounds like it is indeed in Py 2.6 where they tightened things up. I'll just leave the check for exceptions in place and use it more often now. -- Lou Pecora, my views are my own

Re: [Numpy-discussion] Change in Python/Numpy numerics with Py version 2.6 ?

2010-11-12 Thread Lou Pecora
at 8:02 AM, Lou Pecora lou_boog2...@yahoo.com wrote: I ran across what seems to be a change in how numerics are handled in Python 2.6 or Numpy 1.3.0 or both, I'm not sure. I've recently switched from using Python 2.4 and Numpy 1.0.3 to using the Python 2.6 and Numpy 1.3.0 that comes with SAGE

Re: [Numpy-discussion] C extension compiling question

2010-10-29 Thread Lou Pecora
extensions that pass arrays in a much easier way. I was into writing bare C extensions from the ground up like you when someone put me onto ctypes. MUCH easier and cleaner and, as a result, easier to debug. I recommend it. -- Lou Pecora, my views are my own

Re: [Numpy-discussion] How to solve homogeneous linear equations with NumPy?

2009-12-03 Thread Lou Pecora
/. If you are serious about getting a solution, then it is worth spending some time learning about linear systems. -- Lou Pecora, my views are my own. ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo

Re: [Numpy-discussion] finding close together points.

2009-11-12 Thread Lou Pecora
- Original Message From: Christopher Barker chris.bar...@noaa.gov To: Discussion of Numerical Python numpy-discussion@scipy.org Sent: Thu, November 12, 2009 12:37:37 PM Subject: Re: [Numpy-discussion] finding close together points. Lou Pecora wrote: a KD tree for 2D nearest neighbor

Re: [Numpy-discussion] finding close together points.

2009-11-11 Thread Lou Pecora
trees in speed, but is SO much easier to program. -- Lou Pecora, my views are my own. ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] where does numpy get its pow function?

2009-09-29 Thread Lou Pecora
? :-) -- Lou Pecora, my views are my own. ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Plans for Numpy 1.4.0 and scipy 0.8.0

2009-06-21 Thread Lou Pecora
3.0.  The problem with each step is that all the libraries we rely on have to be ugraded to that step or we might lose the functionality of that library.  For me that's a killer. I have to take a good look at all of them before the upgrade or a big project will take a fatal hit. -- Lou Pecora

Re: [Numpy-discussion] What is the logical value of nan?

2009-03-11 Thread Lou Pecora
representations, I would presume that Numpy's PZERO (positive zero) and NZERO (negative zero) are treated as nothing. Conversion to integer for these should be zero. Yet another +1. -- Lou Pecora, my views are my own. ___ Numpy

Re: [Numpy-discussion] Faster way to generate a rotation matrix?

2009-03-04 Thread Lou Pecora
? -- Lou Pecora, my views are my own. --- On Tue, 3/3/09, Jonathan Taylor jonathan.tay...@utoronto.ca wrote: From: Jonathan Taylor jonathan.tay...@utoronto.ca Subject: Re: [Numpy-discussion] Faster way to generate a rotation matrix? To: Discussion of Numerical Python numpy-discussion@scipy.org

Re: [Numpy-discussion] Faster way to generate a rotation matrix?

2009-03-04 Thread Lou Pecora
Whoops. I see you have profiled your code. Sorry to re-suggest that. But I agree with those who suggest a C speed up using ctypes or cthyon. However, thanks for posting your question. It caused a LOT of very useful responses that I didn't know about. Thanks to all who replied. -- Lou

Re: [Numpy-discussion] SVD errors

2009-02-02 Thread Lou Pecora
of that matrix are the square of the singular values of A. This worked for me, but my original matrix was square. Maybe that helped. Don't know. It's worth a try. -- Lou Pecora, my views are my own. --- On Mon, 2/2/09, mtrum...@berkeley.edu mtrum...@berkeley.edu wrote: From: mtrum

[Numpy-discussion] One Solution to: What to use to read and write numpy arrays to a file?

2008-12-09 Thread Lou Pecora
and later read the list from the file and then convert the list that is read in back to an array: [ls_str]=fp.readline() ls_in= eval(ls_str) arr_in=array(ls_in) # arr_in is same as arr Seems to work well. Any comments? -- Lou Pecora, my views are my own. --- On Tue, 12/9/08, Lou Pecora

[Numpy-discussion] What to use to read and write numpy arrays to a file?

2008-12-08 Thread Lou Pecora
straight-forward? I really like the simple, pythonic approach of the repr - eval pairing. Thanks for any advice. (yes, I am googling, too) -- Lou Pecora, my views are my own. ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http

Re: [Numpy-discussion] What to use to read and write numpy arrays to a file?

2008-12-08 Thread Lou Pecora
later when I read them in. I'd like that information to be preserved. Thanks. -- Lou Pecora, my views are my own. ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] What to use to read and write numpy arrays to a file?

2008-12-08 Thread Lou Pecora
, not a text one. -- Robert Kern Thanks, Robert. I may have to go that route, assuming that the save and load pair preserve shape, i.e. I don't have to know the shape when I read back in. -- Lou Pecora, my views are my own. ___ Numpy

Re: [Numpy-discussion] huge array calculation speed

2008-07-11 Thread Lou Pecora
), 989 (1997). -- Lou Pecora, my views are my own. --- On Thu, 7/10/08, Dan Lussier [EMAIL PROTECTED] wrote: From: Dan Lussier [EMAIL PROTECTED] Subject: [Numpy-discussion] huge array calculation speed To: numpy-discussion@scipy.org Date: Thursday, July 10, 2008, 12:38 PM Hello, I am

Re: [Numpy-discussion] Making NumPy accessible to everyone (or no-one) (was Numpy-discussion Digest, Vol 19, Issue 44)

2008-04-10 Thread Lou Pecora
). But locking people into a standard, even an informal one is, as someone else said, acting a bit too much like accountants. Stop, please! -- Lou Pecora, my views are my own. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam

Re: [Numpy-discussion] SVD error in Numpy. NumPy Update reversed?

2008-03-25 Thread Lou Pecora
Travis, Does that mean it's not worth starting a ticket? Sounds like nothing can be done, *except* to put this in the documentation and the FAQ. It has bitten several people. --- Travis E. Oliphant [EMAIL PROTECTED] wrote: Stéfan van der Walt wrote: Lou Pecora wrote: Thanks, Matthieu

Re: [Numpy-discussion] SVD error in Numpy. NumPy Update reversed?

2008-03-19 Thread Lou Pecora
of iterations. -- Lou Pecora, my views are my own. Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs ___ Numpy-discussion mailing list

[Numpy-discussion] SVD error in Numpy. Bug?

2008-03-18 Thread Lou Pecora
think this is what people do)? Any help appreciated. I'm using a Mac Book Pro (Intel chip), system 10.4.11, Python 2.4.4. -- Lou Pecora, my views are my own. Be a better friend, newshound, and know

Re: [Numpy-discussion] C Extensions, CTypes and external code libraries

2008-02-14 Thread Lou Pecora
--- David Cournapeau [EMAIL PROTECTED] wrote: On Wed, 2008-02-13 at 08:20 -0800, Lou Pecora wrote: Yes, a good question. Two reasons I started off with the static library. One is that Gnu instructions claimed the dynamic library did not always build properly on the Mac OS X

[Numpy-discussion] Example: How to use ctypes and link to a C library

2008-02-14 Thread Lou Pecora
) = 9.900249722395765284e-01 x, y: 2.00e-01 9.900249722395765284e-01 -- Lou Pecora, my views are my own. Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http

Re: [Numpy-discussion] C Extensions, CTypes and external code libraries

2008-02-13 Thread Lou Pecora
to matter. Later today I will try to build the dynamic version of GSL and see what that yields. If I get it I will link to that as you suggest. Thanks, again. Your suggestions have moved me along nicely. -- Lou Pecora, my views are my own

Re: [Numpy-discussion] C Extensions, CTypes and external code libraries

2008-02-13 Thread Lou Pecora
up the stuff I need. But at least I have workable approach. Thanks for your help. Comments welcome. -- Lou Pecora, my views are my own. Never miss a thing. Make Yahoo your home page. http

Re: [Numpy-discussion] C Extensions, CTypes and external code librarie

2008-02-12 Thread Lou Pecora
, Albert. I'll report back to this thread when I give it a try. -- Lou Pecora, my views are my own. Looking for last minute shopping deals? Find them fast with Yahoo! Search. http

Re: [Numpy-discussion] C Extensions, CTypes and external code libraries

2008-02-12 Thread Lou Pecora
--- Jon Wright [EMAIL PROTECTED] wrote: Lou Pecora wrote: ... This appears to be the way static and shared libraries work, especially on Mac OS X, maybe elsewhere. Have you tried linking against a GSL static library? I don't have a mac, but most linkers only pull in the routines

Re: [Numpy-discussion] C Extensions, CTypes and external code libraries

2008-02-12 Thread Lou Pecora
the Python interface. So you are right, I do not want to wrap GSL. It sounds like I can just add something like -lnameofGSLdylib (where I put in the real name of the GSL library after the -l) in my gcc command to make my shared lib. Is that right? Thanks for your help. -- Lou Pecora, my

[Numpy-discussion] C Extensions, CTypes and external code libraries

2008-02-12 Thread Lou Pecora
CTypes. This appears to be the way static and shared libraries work, especially on Mac OS X, maybe elsewhere. I'd really like to be wrong about this and I will follow up on some of the suggested reading you all gave me. Thanks, again. -- Lou Pecora, my views are my own

Re: [Numpy-discussion] CTypes: How to incorporate a library with shared library module?

2008-02-12 Thread Lou Pecora
extensions on the host platform. There are many examples on the web on how to use distutils to build C extensions (http://docs.python.org/ext/building.html). [cut] -- Lou Pecora, my views are my own

[Numpy-discussion] CTypes: How to incorporate a library with shared library module?

2008-02-11 Thread Lou Pecora
far. Thanks. -- Lou Pecora, my views are my own. - Never miss a thing. Make Yahoo your homepage.___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo

Re: [Numpy-discussion] Numpy and C++ integration...

2008-02-05 Thread Lou Pecora
the test using python setup.py test. Now I have to find some examples on using it and learn to compile shared libraries (.so type I guess). -- Lou Pecora, my views are my own. Looking for last minute

Re: [Numpy-discussion] Numpy and C++ integration...

2008-02-05 Thread Lou Pecora
Hmmm... last time I tried ctypes it seemed pretty Windows oriented and I got nowhere. But enough people have said how easy it is that I'll give it another try. Believe me, I'd be happy to be wrong and find a nice easy way to pass NumPy arrays and such. Thanks. -- Lou Pecora --- Gael

[Numpy-discussion] New to ctypes. Some problems with loading shared library.

2008-02-05 Thread Lou Pecora
doing wrong? Thanks for any clues. -- Lou Pecora, my views are my own. Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs

Re: [Numpy-discussion] New to ctypes. Some problems with loading shared library.

2008-02-05 Thread Lou Pecora
call, too. Anyway, IT WORKED! How 'bout that? One simple example down and now on to more complex things. Thanks, again. -- Lou Pecora, my views are my own. Looking for last minute shopping

Re: [Numpy-discussion] Numpy and C++ integration...

2008-02-04 Thread Lou Pecora
and recreate the class in Python. This can be avoided, but you'll have to use more powerful tools. I would advice SWIG (see my blog for some examples with C++ and SWIG). Matthieu Ah, yes, I will also recommend Travis' book. -- Lou Pecora, my views are my own

Re: [Numpy-discussion] Numpy and C++ integration...

2008-02-04 Thread Lou Pecora
the code however for review. Thank you. -- Vince Fulco -- Lou Pecora, my views are my own. Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com

Re: [Numpy-discussion] Numpy and C++ integration...

2008-02-04 Thread Lou Pecora
--- Christopher Barker [EMAIL PROTECTED] wrote: Lou Pecora wrote: I would recommend using the C API I would recommend against this -- there is a lot of code to write in extensions to make sure you do reference counting, etc, and it is hard to get right. Well, fair enough to some

Re: [Numpy-discussion] argsort memory problem?

2008-01-29 Thread Lou Pecora
of handling a memory problem IMHO. Let us Mac people not be too smug. -- Lou Pecora --- Alexandre Fayolle [EMAIL PROTECTED] wrote: On Tue, Jan 29, 2008 at 02:58:15PM +0100, Oriol Vendrell wrote: Hi all, I've noticed something that looks like an odd behaviour in array.argsort

Re: [Numpy-discussion] argsort memory problem?

2008-01-29 Thread Lou Pecora
Hmmm... Interesting. I am using Python 2.4.4. It would be nice to have other Mac people with same/other Python and numpy versions try the argsort bug code. -- Lou Pecora --- Francesc Altet [EMAIL PROTECTED] wrote: A Tuesday 29 January 2008, Lou Pecora escrigué: This still occurs in numpy

Re: [Numpy-discussion] compiling c extension

2008-01-21 Thread Lou Pecora
reference to `import_array' collect2: ld returned 1 exit status error: command 'gcc' failed with exit status 1 -- Lou Pecora, my views are my own. Looking for last minute shopping deals? Find them

Re: [Numpy-discussion] numpy : your experiences?

2007-11-20 Thread Lou Pecora
. -- Lou Pecora, my views are my own. Be a better sports nut! Let your teams follow you with Yahoo Mobile. Try it now. http://mobile.yahoo.com/sports;_ylt=At9_qDKvtAbMuh1G1SQtBI7ntAcJ

Re: [Numpy-discussion] Problem with numpy.linalg.eig?

2007-11-12 Thread Lou Pecora
Works fine on my computer (Mac OS X 10.4), Python 2.4. Runs in a second or so. -- Lou Pecora ---Peter wrote: Hi all, The following code calling numpy v1.0.4 fails to terminate on my machine, which was not the case with v1.0.3.1 from numpy import arange, float64 from numpy.linalg

Re: [Numpy-discussion] arange and floating point arguments

2007-09-14 Thread Lou Pecora
(double).resolution instead of ceil((stop-start)/step) perhaps be useful? Joris -- Lou Pecora, my views are my own. Catch up on fall's hot new shows on Yahoo! TV. Watch previews, get listings

Re: [Numpy-discussion] Vector magnitude?

2007-09-05 Thread Lou Pecora
vectors -- Lou Pecora, my views are my own. --- Great spirits have always encountered violent opposition from mediocre minds. -Albert Einstein Moody friends. Drama queens. Your life? Nope

Re: [Numpy-discussion] numpy requires tuples for indexing where Numeric allowed them?

2007-06-07 Thread Lou Pecora
Hi, Jim, Just wondering why you would use item() rather than index in brackets, i.e. a[i] ? The latter works well in numpy. But maybe I'm missing something. -- Lou Pecora --- Jim Kleckner [EMAIL PROTECTED] wrote: I'm fighting conversion from Numeric to numpy. One change that doesn't

Re: [Numpy-discussion] SciPy Journal

2007-06-07 Thread Lou Pecora
would be willing to write about and contribute. -- Lou Pecora, my views are my own. --- Great spirits have always encountered violent opposition from mediocre minds. -Albert Einstein

Re: [Numpy-discussion] [SciPy-user] SciPy Journal

2007-05-31 Thread Lou Pecora
on this on the SciPy cookbook, but I bet it would reach more people in a journal. I also suggest that articles on using packages like matplotlib/pylab for scientific purposes also be included. -- Lou Pecora, my views are my own. --- Great spirits have always encountered violent opposition from

Re: [Numpy-discussion] Question about Optimization (Inline and Pyrex)

2007-04-18 Thread Lou Pecora
?). It's certainly not competition for ipython1, though, it's mostly to show an example of making threads easy to use. Anne Please put the parallel map code on the Wiki. I found your first (obvious-parallel) example very helpful. -- Lou Pecora, my views are my own. --- Great

Re: [Numpy-discussion] Question about Optimization (Inline and Pyrex)

2007-04-17 Thread Lou Pecora
Now, I didn't know that. That's cool because I have a new dual core Intel Mac Pro. I see I have some learning to do with multithreading. Thanks. --- Anne Archibald [EMAIL PROTECTED] wrote: On 17/04/07, Lou Pecora [EMAIL PROTECTED] wrote: You should probably look over your code and see

Re: [Numpy-discussion] Question about Optimization (Inline and Pyrex)

2007-04-17 Thread Lou Pecora
Ii get what you are saying, but I'm not even at the Stupidly Easy Parallel level, yet. Eventually. Thanks. --- Anne Archibald [EMAIL PROTECTED] wrote: On 17/04/07, Lou Pecora [EMAIL PROTECTED] wrote: Now, I didn't know that. That's cool because I have a new dual core Intel Mac Pro. I

Re: [Numpy-discussion] Question about Optimization (Inline and Pyrex)

2007-04-17 Thread Lou Pecora
Very nice. Thanks. Examples are welcome since they are usually the best to get up to speed with programming concepts. --- Anne Archibald [EMAIL PROTECTED] wrote: On 17/04/07, Lou Pecora [EMAIL PROTECTED] wrote: I get what you are saying, but I'm not even at the Stupidly Easy Parallel

Re: [Numpy-discussion] 2D Arrays column operations

2007-03-29 Thread Lou Pecora
. --- Simon Berube [EMAIL PROTECTED] wrote: Awww, this is quite right. I kept using the a[0][:] notation and I assume I am simply pulling out single arrays from the array list. Thank you very much for the prompt reply. (And sorry for wasting your time :P) -- Lou Pecora, my views are my own

Re: [Numpy-discussion] Where's append in NumPy??

2007-01-09 Thread Lou Pecora
That may be it. I'll get a newer version. --- Robert Kern [EMAIL PROTECTED] wrote: Lou Pecora wrote: After import numpy as N In [10]: print N.__version__ 1.1.2881 does that look right as a recent version? No, that's very old. The version number had briefly gotten bumped

Re: [Numpy-discussion] Where's append in NumPy?? Can't Installing NumPy.

2007-01-09 Thread Lou Pecora
--- Lou Pecora [EMAIL PROTECTED] wrote: That may be it. I'll get a newer version. No Luck. I downloaded numpy-1.0-py2.4-macosx10.4.dmg from the MacOSX package site, but the installer kept telling me there was nothing to install. I removed the previous NumPy and numpy.pth from the site

Re: [Numpy-discussion] Where's append in NumPy?? Can't Installing NumPy.

2007-01-09 Thread Lou Pecora
to work, giving me version 0.5.3dev for SciPy. Matplotlib installed fine from tarball and the setup stuff. I hope that's of use to someone out there. Each time I upgrade something it's an adventure. Thanks for the feedback. -- Lou Pecora My views are my own

Re: [Numpy-discussion] Where's append in NumPy?? Can't Installing NumPy.

2007-01-09 Thread Lou Pecora
Ah, that does ring a bell. Sigh. I need to upgrade my memory banks. Sure is tough keeping these packages in sync. Thanks. I'll check it out. --- Robert Kern [EMAIL PROTECTED] wrote: Lou Pecora wrote: /usr/local/bin/g77 -g -Wall -undefined dynamic_lookup...blah, blah.../scipy

Re: [Numpy-discussion] Where's append in NumPy??

2007-01-08 Thread Lou Pecora
on same page in the book). What am I missing? -- Lou Pecora My views are my own. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ Numpy

Re: [Numpy-discussion] Where's append in NumPy??

2007-01-08 Thread Lou Pecora
After import numpy as N In [10]: print N.__version__ 1.1.2881 does that look right as a recent version? I still get In [2]: N.append? Object `N.append` not found. -- Lou Pecora My views are my own. __ Do You Yahoo!? Tired of spam