Re: [Numpy-discussion] matlab vs. python question

2007-04-26 Thread belinda thom
Thank you so much! When I finally get a moment to take a break, I'll look in more detail into using your suggestion. --b On Apr 26, 2007, at 12:47 AM, Pauli Virtanen wrote: > belinda thom kirjoitti: >> On Apr 25, 2007, at 12:46 PM, Bill Baxter wrote: >> >> Agree

Re: [Numpy-discussion] matlab vs. python question

2007-04-25 Thread belinda thom
On Apr 25, 2007, at 12:46 PM, Bill Baxter wrote: > On 4/26/07, Robert Kern <[EMAIL PROTECTED]> wrote: >> Sturla Molden wrote: >>> On 4/25/2007 8:34 PM, Robert Kern wrote: >>> The things that I get annoyed with every time I have to read some Matlab code are the lack of namespaces

Re: [Numpy-discussion] matlab vs. python question

2007-04-25 Thread belinda thom
I used to use them frequently. --b On Apr 25, 2007, at 12:31 PM, Robert Kern wrote: > Sturla Molden wrote: >> On 4/25/2007 8:34 PM, Robert Kern wrote: >> >>> The things that I get annoyed with every time I have to read some >>> Matlab code >>> are the lack of namespaces and first-class functio

Re: [Numpy-discussion] How do I test if an array contains NaN ?

2007-01-11 Thread belinda thom
> It's probably worth mentioning that IPython has (thanks to a user > contributed implementation) search capabilities besides tab completion > (which requires you to at least know the start of the string you > want): > > In [3]: N.*nan*? > N.isnan > N.nan > N.nan_to_num > N.nanargmax > N.nanargmin

Re: [Numpy-discussion] [Matplotlib-users] installing numpy, matplotlib, scipy from source on a Mac

2007-01-10 Thread belinda thom
brary/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ site-packages/matplotlib/backends/backend_wx.py", line 1172, in draw_if_interactive figManager.canvas.draw() File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ site-packages/matplotlib/backends/backend_wx

Re: [Numpy-discussion] installing numpy, matplotlib, scipy from source on a Mac

2007-01-10 Thread belinda thom
I am posting this message to both numpy and matplotlib mailing lists because the thread relates to both. First, Robert Kern kindly provided step-by-step instructions for Macs (PPCs and Intels) regarding how to install FROM SOURCE the packages needed to allow Python to become a viable alterna

Re: [Numpy-discussion] recompiling needed for binary module after numpy 1.0

2007-01-09 Thread belinda thom
Hi, I am hopefully almost done w/this exercise, but am uncertain how to interpret what the "---, +++, @@ -48,7" etc. I've looked at the setupext.py file on my machine but am unclear what changes I need to make. I tried google to find some interpretation, but was not successful. I'm somewh

Re: [Numpy-discussion] recompiling needed for binary module after numpy 1.0

2007-01-08 Thread belinda thom
Thanks for the Intel update. I'm doing the same for my PPC (Powerbook, G4, OS X 10.4.8), and have some failures in scipy's tests. Did you try doing: >>> import numpy as N >>> N.test() and >>> import scipy as S >>> S.test()? For me, the latter one fails (both install and S.test() I/O appe

Re: [Numpy-discussion] recompiling needed for binary module after numpy 1.0

2007-01-07 Thread belinda thom
Robert, You are incredible! Triple Thanks! Will begin trying some of this stuff as soon as I've dealt w/hotter fires. --b On Jan 7, 2007, at 10:49 PM, Robert Kern wrote: > belinda thom wrote: > >> There's other reasons --- mostly curiousity driven --- that motivate

Re: [Numpy-discussion] recompiling needed for binary module after numpy 1.0

2007-01-07 Thread belinda thom
On Jan 5, 2007, at 6:01 PM, Robert Kern wrote: > belinda thom wrote: >> On Jan 5, 2007, at 5:32 PM, Sebastian Haase wrote: >> >>> Hi, >>> All I did is recompiling my (on source code file) C extension. I >>> made >>> sure that it was includ

Re: [Numpy-discussion] recompiling needed for binary module after numpy 1.0

2007-01-05 Thread belinda thom
On Jan 5, 2007, at 5:32 PM, Sebastian Haase wrote: > Hi, > All I did is recompiling my (on source code file) C extension. I made > sure that it was including the current numpy header files. Where are these files located? What command did you use? (The gorey details would help me quite a bit, a

[Numpy-discussion] recompiling needed for binary module after numpy 1.0

2007-01-05 Thread belinda thom
Sebastian, I had the same problem awhile back; I'm curious---how'd you fix your mismatch (i.e. where'd you go to get code, did you run python setup?, ...). I realize these are very basic questions, but I've never installed anything from source (aside from using easy_install), so it would b

[Numpy-discussion] ndarray newbie question

2007-01-05 Thread belinda thom
Pierre, Thanks for the reply. > Some context: the type of introspection I'm often wishing I could do > in a single, easy command usually has to do w/getting to know the > software better. dir? obj.__doc__ ? When I try the latter recommendation above w/numpy arrays, I get: In [1]: import num

Re: [Numpy-discussion] ndarray newbie question

2007-01-04 Thread belinda thom
Vincent, Thanks again. On Jan 4, 2007, at 11:40 AM, Vincent Nijs wrote: > --b, > > The only data type in python that has a keys() method is a dictionary. Doh! > Unless it is a record array (http://www.scipy.org/RecordArrays) > there is no > information on variable names contained in the obje

[Numpy-discussion] ndarray newbie question

2007-01-04 Thread belinda thom
Hello, I wrote a "display obj" method for viewing instance data: def dobj(obj) : """extended object viewer that displays arg""" print 'Class: ', obj.__class__.__name__, ' id:', id(obj) for k in obj.__dict__.keys() : print ' ', k, ': ', obj.__dict__[k], ' id:', id(obj.__di

[Numpy-discussion] test issue

2007-01-03 Thread belinda thom
Hello, I've been going thru Dave Kuhlman's "SciPy Course Outline" and found out about test functions -- very cool. Except that on my end, not all tests pass (appended below). Is this a problem for other people? Is it something I should worry about? Here's my setup: Mac G5 w/OS X 10.4.8, usi

Re: [Numpy-discussion] numpy install on mac os x 10.4

2006-12-30 Thread belinda thom
at least allowed me to run all the spicy.test() On Dec 30, 2006, at 11:02 PM, Christopher Barker wrote: > belinda thom wrote: > >> Advice on a painless way to install scipy on my G5 OS X 10.4.8 mac >> greatly appreciated. > > Sorry, there isn't one at this point -- I

Re: [Numpy-discussion] numpy install on mac os x 10.4

2006-12-30 Thread belinda thom
>> I'm wondering why the os-related file names that easy_install creates >> have macosx-10.3 in them (as opposed to 10.4), e.g. >> >>creating /Library/Frameworks/Python.framework/Versions/2.4/lib/ >> python2.4/site-packages/numpy-1.0.1-py2.4-macosx-10.3-fat.egg >> >> Is this something I should

[Numpy-discussion] numpy install on mac os x 10.4

2006-12-29 Thread belinda thom
Hi, I just used easy_install to get the latest version of numpy. Is this the "preferred" method for installing? I'm on a G5 w/mac OS X 10.4 and MacPython 2.4. I'm wondering why the os-related file names that easy_install creates have macosx-10.3 in them (as opposed to 10.4), e.g. creatin

Re: [Numpy-discussion] test issue

2006-12-29 Thread belinda thom
Thanks again for the input. You've been really helpful. On Dec 29, 2006, at 8:47 PM, Eric Firing wrote: > As far as I know, your pythonmac package > source is a good choice. I'm sure one of the many Mac users on this > list can elaborate. I won't go into the long tirade of problems I've run in

Re: [Numpy-discussion] test issue

2006-12-29 Thread belinda thom
that what most users do?) And if so, is there a two-minute tutorial on what I'd need to do to get that stuff running on my machine? (The code I end up using needs to be stable enough for classroom use). Thanks again, --b On Dec 29, 2006, at 6:58 PM, Eric Firing wrote: > belinda th

[Numpy-discussion] test issue

2006-12-29 Thread belinda thom
Hello, I've been going thru Dave Kuhlman's "SciPy Course Outline" (http:// www.rexx.com/~dkuhlman/scipy_course_01.html) and found out about test functions -- very cool. Except that on my end, not all tests pass (appended below). Is this a problem for other people? Is it something I should w