Re: help removing pyQt dll from dist created with py2exe

2010-09-14 Thread Carlos Grohmann
quot; is sufficient.) > >   Almar > > > On 14 September 2010 13:02, Carlos Grohmann > wrote: >> >> Hello all, >> >> i've been trying to build an .exe with py2exe. After many tentatives, >> it worked, but the total space used by the app goes to

help removing pyQt dll from dist created with py2exe

2010-09-14 Thread Carlos Grohmann
Hello all, i've been trying to build an .exe with py2exe. After many tentatives, it worked, but the total space used by the app goes to 30Mb. It is a simple app, that uses wxpython, matplotlib and numpy. I checked the library.zip file and notived that there is a pyQt-related file there: Pyqt - Qt

Re: speed of numpy.power()?

2010-08-25 Thread Carlos Grohmann
On 25 ago, 12:40, David Cournapeau wrote: > On Wed, Aug 25, 2010 at 10:59 PM, Carlos Grohmann > Thanks David and Hrvoje. That was the feedback I was looking for. I am using numpy in my app but in some cases I will use math.pow(), as some tests with timeit showed that numpy.power was slow

speed of numpy.power()?

2010-08-25 Thread Carlos Grohmann
Hi all, I'd like to hear from you on the benefits of using numpy.power(x,y) over (x*x*x*x..) I looks to me that numpy.power takes more time to run. cheers Carlos -- http://mail.python.org/mailman/listinfo/python-list

Re: problems with CSV module

2010-06-03 Thread Carlos Grohmann
Thanks for your prompt response, Neil. > That data doesn't appear to be csv worthy. Why not use str.split > or str.partition? Well, I should have said that this is one kind of data. The function is part of a larger app, and there is the possibility that someone uses headers in the data files, or

problems with CSV module

2010-06-03 Thread Carlos Grohmann
Hi all, I'm using csv to read text files, and its working fine, except in two cases: - when there is only one line of text (data) in the file - when there is a blank line after the last data line this is the kind of data: 45 67 89 23 45 06 12 34 67 ... and this is the function: def getData(pa

Re: shouldn't list comprehension be faster than for loops?

2009-12-18 Thread Carlos Grohmann
> Have you tried this with > >    dip1 = [dp - 0.01 if dp == 90 else dp for dp in dipList] > Yes that is better! many thanks! -- http://mail.python.org/mailman/listinfo/python-list

shouldn't list comprehension be faster than for loops?

2009-12-17 Thread Carlos Grohmann
Hello all I am testing my code with list comprehensions against for loops. the loop: dipList=[float(val[1]) for val in datalist] dip1=[] for dp in dipList: if dp == 90: dip1.append(dp - 0.01) else: dip1.append(dp) listcomp: dipList=[float