Re: [Numpy-discussion] Simple 3D drawing options?

2006-07-05 Thread Bill Baxter
I like the idea of enthon, but I hadn't given it much thought because it seems to lag so far behind in versions.  Python 2.3, Numpy 0.9.6, etc.But maybe that's not as big a deal as I've been thinking?  Two questions: * Can it happily co-exist with separate installs of more up-to-date versions of th

[Numpy-discussion] (no subject)

2006-07-05 Thread Ferenc . Pintye
Hi, how could i get the name of an array in a string ? (info command ?!) thanks f. Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based

Re: [Numpy-discussion] arguments for stats.chi2

2006-07-05 Thread David Huard
HI JJ, try stats.chi2.rvs(10) stats.chi2.rvs(10, loc=0, scale =100, size = 5) df is not a keyword argument, so writing df=10 explicitely was causing the error. David2006/7/4, JJ <[EMAIL PROTECTED]>: Hello.  I have a very simple question.  I would liketo generate a number of random variables fr

[Numpy-discussion] (no subject)

2006-07-05 Thread ferenc pintye
Hi,   how could i get the name of an array in a string ? thanks f. Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo h

Re: [Numpy-discussion] (no subject)

2006-07-05 Thread Alexandre Fayolle
On Wed, Jul 05, 2006 at 02:51:36PM +0200, ferenc pintye wrote: > Hi, > > how could i get the name of an array in a string ? if by this you mean "the name of an identifier refering to [whatever]", this is a FAQ, and the answer is 1. you don't want to do that 2. your problem is not well behaved (t

Re: [Numpy-discussion] (no subject)

2006-07-05 Thread Robert Kern
[EMAIL PROTECTED] wrote: > > Hi, > > how could i get the name of an array in a string ? > (info command ?!) You can't. http://mail.python.org/pipermail/python-list/2005-June/286574.html -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made

Re: [Numpy-discussion] Dot as a method

2006-07-05 Thread Tim Hochberg
Bart Vandereycken wrote: > Hi all, > > reading the thread "Ransom proposals" I was wondering why there isn't a > ndarray.dot() method? There is already a scipy.sparse.dot() so this > would fit nicely in the whole idea of polymorphism. > Are you sure about that? The problem with a dot method

[Numpy-discussion] ANN: Python Enthought Edition Version 1.0.0.beta3 Released

2006-07-05 Thread Bryce Hendrix
Enthought is pleased to announce the release of Python Enthought Edition Version 1.0.0.beta3 (http://code.enthought.com/enthon/) -- a python distribution for Windows. 1.0.0.beta3 Release Notes: Version 1.0.0.beta3 of Python Enthought Edition is the first version based o

Re: [Numpy-discussion] tentative numpy tutorial

2006-07-05 Thread Keith Goodman
On 7/4/06, Pau Gargallo <[EMAIL PROTECTED]> wrote: > motivated by the lack of free documentation for NumPy, with some > friends, we started writing a tutorial, that we would like to see in > scipy.org. After some time, the project have started to loose its > initial impetus. Now, we put the curren

[Numpy-discussion] simple question

2006-07-05 Thread Mathew Yeates
What is the typical way of doing the following starting with a 0 matrix, set all values to 1 when a certain condition is met, set to -1 when another condition is met, left alone if neither condition is met. Mathew Using Tomcat but need to do more? Need to support web services, security? Get st

Re: [Numpy-discussion] simple question

2006-07-05 Thread Keith Goodman
On 7/5/06, Mathew Yeates <[EMAIL PROTECTED]> wrote: > What is the typical way of doing the following > starting with a 0 matrix, set all values to 1 when a certain condition > is met, set to -1 when another condition is met, left alone if neither > condition is met. This works on recent versions o

Re: [Numpy-discussion] tentative numpy tutorial

2006-07-05 Thread Steve Lianoglou
>> motivated by the lack of free documentation for NumPy, with some >> friends, we started writing a tutorial, that we would like to see in >> scipy.org. After some time, the project have started to loose its >> initial impetus. Now, we put the current unfinished version in >> >> http://www.scipy.o

Re: [Numpy-discussion] simple question

2006-07-05 Thread Mathew Yeates
o. I was looking at using "where" Keith Goodman wrote: > On 7/5/06, Mathew Yeates <[EMAIL PROTECTED]> wrote: >> What is the typical way of doing the following >> starting with a 0 matrix, set all values to 1 when a certain condition >> is met, set to -1 when another condition is met, left al

Re: [Numpy-discussion] A C++ library and the new array interface: the best approach?

2006-07-05 Thread Philip Austin
Travis Oliphant writes: > b) byte-the bullet and use Boost python (which other's who have > integrated C++ code with Python seem to really like). I've never > wrapped my mind around Boost python, though, so I'm not much help there. I've updated my set of boost helper functions to work with

[Numpy-discussion] PyObject arrays, pickling, tofile

2006-07-05 Thread Tom Denniston
It seems from my cursory look that numpy doesn't support the pickling or the tofile of PyObject arrays. I was wondering whether such functionlity is in the pipeline or if there is little interest. Personally, I would really like to see the feature in numpy but don't know if I am up to implementing

Re: [Numpy-discussion] simple question

2006-07-05 Thread Bill Baxter
That's the kind of thing that should maybe be on the NumpyExample list:  http://www.scipy.org/Numpy_Example_ListBut currently little syntactical tricks like that aren't listed there.   I'm not sure how you'd list that even. There is an example like that ( a[a<0.5]=0 ) on the Numpy for Matlab Users

[Numpy-discussion] Determining if two arrays share data

2006-07-05 Thread Bill Baxter
Often when I'm doing interactive prototyping I find myself wanting to check whether two arrays are sharing a copy of the same data. It seems like there ought to be a concise way to do that, but right now seems like the only way is with a little function like this:def same_base(a,b):     ab = a.base

[Numpy-discussion] Problems installing numpy0.9.8 on MacOSX (10.4)

2006-07-05 Thread Satellite Data Research Group
Dear Sir/Madam I am trying to install numpy0.9.8 onto Mac version 10.4 and Python2.4 and am having trouble doing so. I had successfully installed inumpy0.9.8 on Python2.3, so am very confused as to why it is not working on Python2.4 After typing 'python setup.py build' and then 'python setup.

Re: [Numpy-discussion] Problems installing numpy0.9.8 on MacOSX (10.4)

2006-07-05 Thread Tim Leslie
On 7/6/06, Satellite Data Research Group <[EMAIL PROTECTED]> wrote: > Dear Sir/Madam > > I am trying to install numpy0.9.8 onto Mac version 10.4 and Python2.4 > and am having trouble doing so. I had successfully installed > inumpy0.9.8 on Python2.3, so am very confused as to why it is not > workin

Re: [Numpy-discussion] PyObject arrays, pickling, tofile

2006-07-05 Thread Travis Oliphant
Tom Denniston wrote: > It seems from my cursory look that numpy doesn't support the pickling > or the tofile of PyObject arrays. Yes, you can pickle PyObject arrays, that is supposed to work. What is not working? You can't use tofile on PyObject arrays, because I didn't have clear idea what t

[Numpy-discussion] Numpy not working (revised)

2006-07-05 Thread Satellite Data Research Group
Dear all I am trying to get numpy working with MacOSX 10.4 on an intel processor. I had it working for Python2.3.5, but after installing Python 2.4 it didn't work on either python version. After inputing: sudo python setup.py build and then sudo python setup.py install and also trying to load

Re: [Numpy-discussion] Numpy not working (revised)

2006-07-05 Thread Travis Oliphant
Satellite Data Research Group wrote: > Dear all > > I am trying to get numpy working with MacOSX 10.4 on an intel > processor. I had it working for Python2.3.5, but after installing > Python 2.4 it didn't work on either python version. > > After inputing: > sudo python setup.py build > and then

Re: [Numpy-discussion] Numpy not working (revised)

2006-07-05 Thread Steve Lianoglou
> I am trying to get numpy working with MacOSX 10.4 on an intel > processor. I had it working for Python2.3.5, but after installing > Python 2.4 it didn't work on either python version. Hi Stephen, I've been able to get numpy/scipy installed on my MacBook Pro (although I do get three unit test

[Numpy-discussion] Mac OS 10.4 test errors

2006-07-05 Thread Steve Lianoglou
Hi folks, I'm able to build and install numpy on my intel mac OS 10.4.7 but I'm getting 3 unit test failures. I'm using gcc 4.0.1 and GNU Fortran 95 (GCC) 4.2.0 20060401 (if that's helpful to know). The relevant output from my ipython session is below. Doing some of the stuff I've found i

[Numpy-discussion] Numpy import problem

2006-07-05 Thread Satellite Data Research Group
Hi, I have a problem when importing numpy into python 2.4.1. I did a successful (I think) build and install of Numpy 0.9.8 on a mac osx (10.4) intel, but when i try to import numpy into python i get this error: >>> from numpy import* import core -> failed: Inappropriate file type for dynamic l