[Numpy-discussion] visual programming

2006-09-18 Thread Mathew Yeates
semi off topic. Does anyone know of any good visual programming tools? Forever ago, I used to use something called Khoros for image processing and I found it very useful. You connect boxes which represent different processing steps. At about the same time, there was something similar to Khoros

Re: [Numpy-discussion] I've just tagged the tree for 1.0rc1

2006-09-20 Thread Mathew Yeates
I don't see a windows binary. Will this be added? Mathew Travis Oliphant wrote: > There is now a 1.0rc1 tag on the NumPy SVN tree. I've confirmed it > builds and passes all tests on my Linux box for Python2.3-Python2.5 > > -Travis > > > ---

[Numpy-discussion] RC2 - f2py no workee

2006-10-11 Thread Mathew Yeates
I'm running the following python c:\Python24\Scripts\f2py.py --fcompiler=absoft -c foo.pyf foo.f and it seems that the compiler info isn't being passed down. When distutils tries to compile I get the error --- File "C:\Python24\Lib\site-packag

[Numpy-discussion] combinatorics

2006-10-23 Thread Mathew Yeates
Hi Is there any support for combinatorics in numpy or scipy? Actually, all I need is to evaluate is (n/m) i.e. n choose m. If numpy doesn't have it, anyone know of a good public domain prog? Mathew - Using Tomcat but need

Re: [Numpy-discussion] combinatorics

2006-10-23 Thread Mathew Yeates
Thank you! Travis Oliphant wrote: > Mathew Yeates wrote: > >> Hi >> Is there any support for combinatorics in numpy or scipy? Actually, all >> I need is to evaluate is (n/m) i.e. n choose m. >> >> >> > In [3]: scipy.comb(109,54,exact=1

[Numpy-discussion] distutils question

2006-10-26 Thread Mathew Yeates
Hi I am trying to compile a 64 bit version of numpy with gcc. When building, numpy tries to figure out the lapack/atlas version. Up to this point, everything has been compiled with gcc -m64 and all is groovy. But, when an attempt is made to get the atlas version, the link fails because the comma

[Numpy-discussion] build errors Solaris x86 64 bit python2.5

2006-10-26 Thread Mathew Yeates
yes, I got around the problem from my previous posting "distutils question". I added ld_args[:0] = ['-m64'] to line 209 of python2.5/distutils/unixcompiler.py. Lovely, yes I know. I now get an error "numpy/core/src/multiarraymodule.c:7230: error: `NPY_ALLOW_THREADS' undeclared". This is after

[Numpy-discussion] memmap working?

2006-11-13 Thread Mathew Yeates
I have a memory mapped array. When I try and assign data, my mem usage goes through the roof. example: outdat[filenum,:]=outarr where outdat is memory mapped. Anybody know how to avoid this? Mathew - Using Tomcat but need

Re: [Numpy-discussion] memmap working?

2006-11-13 Thread Mathew Yeates
Charles R Harris wrote: > > > On 11/13/06, *Mathew Yeates* <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> wrote: > > I have a memory mapped array. When I try and assign data, my mem usage > goes through the roof. > > > Is it cache memory or proce

[Numpy-discussion] reference count problems

2006-11-15 Thread Mathew Yeates
Hi I'm running a 64 bit Python 2.5 on an x86 with Solaris. I have a function I call over 2^32 times and eventually I run out of memory. The function is def make_B(deltadates): numcols=deltadates.shape[0] B=numpy.zeros((numcols,numcols)) for ind in range(0,numcols): #comment out this l

Re: [Numpy-discussion] reference count problems

2006-11-15 Thread Mathew Yeates
Robert Kern wrote: > Mathew Yeates wrote: > >> Hi >> I'm running a 64 bit Python 2.5 on an x86 with Solaris. I have a >> function I call over 2^32 times and eventually I run out of memory. >> >> The function is >> def make_B(deltadates): >>

[Numpy-discussion] program attached Re: reference count problems

2006-11-15 Thread Mathew Yeates
Stefan van der Walt wrote: On Wed, Nov 15, 2006 at 02:33:52PM -0600, Robert Kern wrote: Mathew Yeates wrote: Hi I'm running a 64 bit Python 2.5 on an x86 with Solaris. I have a function I call over 2^32 times and eventually I run out of memory. The function is def make_B(delta

Re: [Numpy-discussion] program attached Re: reference count problems

2006-11-15 Thread Mathew Yeates
Robert Kern wrote: > Mathew Yeates wrote: > > >> def delta2day1(delta): >> return delta.days/365.0 >> deltas2days=numpy.frompyfunc(delta2day1,1,1) >> > > If I had to guess where the problem is, it's here. frompyfunc() and > vectorize(

[Numpy-discussion] dealing with large arrays

2006-06-12 Thread Mathew Yeates
Hi I typically deal with very large arrays that don't fit in memory. How does Numpy handle this? In Matlab I can use memory mapping but I would prefer caching as is done in The Gimp. Any pointers appreciated. Mathew ___ Numpy-discussion mailing list

[Numpy-discussion] build problems on Solaris

2006-06-13 Thread Mathew Yeates
Heres the problem The function get_flags_linker_so in numpy/distutils/fcompiler/gnu.py is not called anywhere. Because of this, g2c is not added as a library and -mimpure-text is not set. This causes the "s_wsfe unresolved" problem. Anybody know how to fix this? Mathew ___

[Numpy-discussion] Atlas missing dgeev

2006-06-13 Thread Mathew Yeates
I finally got things linked with libg2c but now I get import linalg -> failed: ld.so.1: python: fatal: relocation error: file /u/fuego0/myeates/lib/python2.4/site-packages/numpy/linalg/lapack_lite.so: symbol dgeev_: referenced symbol not found I looked all through my ATLAS source and I see no dg

[Numpy-discussion] core dump when runniong tests

2006-06-14 Thread Mathew Yeates
I consistently core dump when I do the following 1) from the console I do >import numpy >numpy.test(level=1,verbosity=2) >numpy.test(level=1,verbosity=2) >numpy.test(level=1,verbosity=2) the third time (and only the third) I get a core dump in test_types. It happens on the line val = vala+val

Re: [Numpy-discussion] core dump when runniong tests

2006-06-14 Thread Mathew Yeates
error with : got 6765201.000364 -- Ran 377 tests in 0.347s FAILED (failures=1) Mathew Yeates wrote: > I consistently core dump when I do the following > 1) from the console I do > >import numpy > >numpy.te

Re: [Numpy-discussion] core dump when runniong tests

2006-06-15 Thread Mathew Yeates
SunOS 5.10 Generic_118844-20 i86pc i386 i86pcSystem = SunOS David M. Cooke wrote: > On Wed, 14 Jun 2006 14:06:13 -0700 > Mathew Yeates <[EMAIL PROTECTED]> wrote: > > >> Travis suggested I use svn and this worked! >> Thanks Travis! >> >> I'm now

[Numpy-discussion] fromfile croaking on windows

2006-06-22 Thread Mathew Yeates
when I try and load a file with numpy.fromfile I keep getting a message 7245092 items requested but only 3899 read. Its always the same number read. I've checked and I'm giving the correct filename and its the correct size. Any idea whats going on? This is with 0.9.8 Mathew Using Tomcat

[Numpy-discussion] p.s. Re: fromfile croaking on windows

2006-06-22 Thread Mathew Yeates
When I specify count=-1 I get the exact same error. So, numpy was able to determine the filesize. It just can't read it. Mathew Mathew Yeates wrote: > when I try and load a file with numpy.fromfile I keep getting a message > 7245092 items requested but only 3899 read. Its alwa

[Numpy-discussion] matlab translation

2006-06-23 Thread Mathew Yeates
This is probably in an FAQ somewhere but . Is there a tool out there for translating Matlab to Numeric? I found a 1999 posting by Travis asking the same thing! It doesn't seem like it would be all THAT difficult to write. Mathew Using Tomcat but need to do more? Need to support web servic

Re: [Numpy-discussion] matlab translation

2006-06-23 Thread Mathew Yeates
> > I'm porting by hand. It does not seem easy to me. And even if it were Ah. Do I detect a dare? Could start first by using Octaves matlab parser. 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 easi

Re: [Numpy-discussion] matlab translation

2006-06-28 Thread Mathew Yeates
I've been looking at a project called ANTLR (www.antlr.org) to do the translation. Unfortunately, although I may have a Matlab grammar, it would still be a lot of work to use ANTLR. I'll look at some of the links that have posted. Mathew Robert Kern wrote: > Vinicius Lobosco wrote: > >> Le

[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 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 -

Re: [Numpy-discussion] simple question

2006-07-06 Thread Mathew Yeates
True False False False True True]] I experimented with "<" instead of "==" but I still get boolean values as indices. Any help? Mathew Keith Goodman wrote: > On 7/5/06, Mathew Yeates <[EMAIL PROTECTED]> wrote: >> What is the typical way of doing the foll

Re: [Numpy-discussion] simple question

2006-07-06 Thread Mathew Yeates
The very example you give produces IndexError: arrays used as indices must be of integer type this is with 0.9.8 Also .while your example says "rand" I had to say numpy.rand This is on WindowsXP Mathew Travis Oliphant wrote: > Mathew Yeates wrote: > >> Not worki

[Numpy-discussion] More zaniness Re: simple question

2006-07-06 Thread Mathew Yeates
okay, I went back to the binary windows distrib. Based on Keths code I wrote >> print numpy.asmatrix(all_dates == start_dates[row],dtype=int) [[0 0 0 0 0 0 0 0 0 0 0 1 0 0]] >> [row,numpy.asmatrix(all_dates == start_dates[row],dtype=int)] = -1 >> print A[row,:] [[-1. -1. 0. 0. 0. 0. 0. 0.

[Numpy-discussion] looking for the Numpy to do it

2006-07-11 Thread Mathew Yeates
I can handle the following problem by iterating through some indices but I'm looking for a more elegant solution. If I have a 1d array, I want to find a contiguous nonzero region about a given index. For example, if a=[1,2,3,0,40,50,60,0,7,8,9] and we start with the index of 5, then I want the

Re: [Numpy-discussion] looking for the Numpy to do it

2006-07-11 Thread Mathew Yeates
der :-) > > Hint a[::-1] will reverse a. > > > On 7/11/06, Mathew Yeates <[EMAIL PROTECTED]> wrote: >> I can handle the following problem by iterating through some indices but >> I'm looking for a more elegant solution. >> >> If I have a 1d ar

[Numpy-discussion] 1.0b1 problem on Solaris

2006-07-24 Thread Mathew Yeates
I installed numpy-1.0b1 and now >import numpy produces a segv. According to gdb it's happening after a failure to import scipy.optimize.minpack2. Eventually, Py_FatalError is called followed by abort,raise and thr_kill. Then the SEGV. Any ideas? Do I need a different version of scipy? I current

Re: [Numpy-discussion] 1.0b1 problem on Solaris

2006-07-24 Thread Mathew Yeates
--bb > > On 7/25/06, Mathew Yeates <[EMAIL PROTECTED]> wrote: >> I installed numpy-1.0b1 and now >import numpy produces a segv. According >> to gdb it's happening after a failure to import scipy.optimize.minpack2. >> Eventually, Py_FatalError is called followe

[Numpy-discussion] lapack too small?

2006-07-25 Thread Mathew Yeates
When I try and build I get the warning * Lapack library (from ATLAS) is probably incomplete: size of /u/fuego0b/myeates/ATLAS/lib/SunOS_HAMMER32SSE3/liblapack.a is 318k (expected >4000k) Follow the instructions in

[Numpy-discussion] a few problems and fixes

2006-08-01 Thread Mathew Yeates
Here are few problems I had with numpy and scipy 1) Compiling scipy on solaris requires running ld -G instead of gcc -shared. Apparently, gcc was not passing the correct args to my nongnu ld. I could not figure out how to alter setup.py to link using ld instead of gcc so I had to link by hand.

Re: [Numpy-discussion] help! type 'float64scalar' is not type 'float'

2006-08-03 Thread Mathew Yeates
Here is a similar problem I wish could be fixed. In scipy.io.mio is savemat with the line if type(var) != ArrayType which, I believe should be changed to if not isinstance(var,ArrayType): so I can use savemat with memory mapped arrays. Mathew Travis Oliphant wrote: > Sebastian Haase wrote: >

[Numpy-discussion] stumped numpy user seeks help

2006-08-29 Thread Mathew Yeates
My head is about to explode. I have an M by N array of floats. Associated with the columns are character labels ['a','b','b','c','d','e','e','e'] note: already sorted so duplicates are contiguous I want to replace the 2 'b' columns with the sum of the 2 columns. Similarly, replace the 3 'e' c