for my uses, its handy to let things raise exceptions willy nilly in
the lower level functions, and do the catching in the higher level function.
Paul Probert
--
http://mail.python.org/mailman/listinfo/python-list
the same though.
Using nonzero, put, and take, I can do what you want like this:
import Numeric as num
t=num.arange(0,20,.1)
x=num.zeros(len(t),'f')
idx=num.nonzero(t>5)
tau=5.
num.put(x,idx,num.exp(-num.take(t,idx)/tau))
Kinda messy compared to Matlab. Do you know about Octave
nd XP. What do people do to fix this? Thanks!
Paul Probert
University of Wisconsin
--
http://mail.python.org/mailman/listinfo/python-list
verheating?
>
>Claudio
>
>
Claudio,
Thanks for the reply. I should have mentioned, this happens to just
about every machine in our collection of about 20 machines. Each is of a
different age, and the hardware is completely diverse. Each has either
of NT4, win2k, or XP instal
Benji York wrote:
>Paul Probert wrote:
> > Hi, My app runs in a loop looking for changes in a database, and like
> > a good boy I call time.sleep(1) inside the loop. Unfortunately this
> > sometimes runs for 200 seconds or so, presumably while my OS is
> > calling Bill
)
dt=newtime-oldtime
if dt > 2:
print 'dt=',dt,' time=',time.strftime('%Y_%m_%d_%Hh_%Mm_%Ss')
Its happening roughly 4 times a day total on our 20 machines, ie about
once every 5 days on a given machine.
Paul Probert
University of Wisconsin
--
http://mail.python.org/mailman/listinfo/python-list
Grant Edwards wrote:
>Time to dowload a linux CD then, eh?
>
>
>
We are looking at that very seriously. The big hurdle is that we run a
lot of laboratory hardware that has no support under linux. A world
where there is no more Kazaa or sasser seems like it would be wonderful,
t
Dennis Lee Bieber wrote:
>On Thu, 23 Feb 2006 15:56:09 -0600, Paul Probert <[EMAIL PROTECTED]>
>declaimed the following in comp.lang.python:
>
>
>
>
>> Thanks for the reply. I should have mentioned, this happens to just
>>about every machine in our collect
quot;about" 200 seconds but always
within 199 to 202 seconds. Very strange, but it is good to have the
problem gone.
Enjoy the weekend!
Paul Probert
University of Wisconsin
--
http://mail.python.org/mailman/listinfo/python-list
Jive Dadson wrote:
>I have an application that opens an image file of the user's choice.
> I have an exception handler for the case that the user selected a bad
> or unsupported image file. My code is catching the exception, but
> unfortunately for me, after I exit the except-clause, wxPytho
n a program running under Tk, such as IDLE.
Something about competing GUI's. If you want a replacement, you can try
pycrust or one of its brethren, which ship with wxpython.
Paul Probert
--
http://mail.python.org/mailman/listinfo/python-list
gt; If not full-up scipy (which provides all sorts of scientific
> and numerical-analysis stuff), then at least numpy (which
> provides the basic array/matrix operations:
>
> http://numpy.scipy.org/
>
> Though the software is free, the documentation isn't. You've
> got to buy the book if you want something to read. IMO, it's
> definitely worth it, and a good way to support the project even
> if you don't really need something to keep your bookends apart.
clip ...
The book is free now, as of Aug 21, 08.
http://www.tramy.us/guidetoscipy.html
Paul Probert
--
http://mail.python.org/mailman/listinfo/python-list
12 matches
Mail list logo