Re: time.clock() or Windows bug?

2008-06-12 Thread Theo v. Werkhoven
The carbonbased lifeform Tim Roberts inspired comp.lang.python with: > Nick Craig-Wood <[EMAIL PROTECTED]> wrote: >> >>Hmmm, 10,000,000 cycles (40 ms @2.5GHz) is nowhere near the ~90,000 >>second jump in time.clock() output reported by the OP. I wonder if >>there could be a different cause? > > Ju

Re: time.clock() or Windows bug?

2008-06-08 Thread Theo v. Werkhoven
The carbonbased lifeform Nick Craig-Wood inspired comp.lang.python with: > Theo v. Werkhoven <[EMAIL PROTECTED]> wrote: >> Output: >> Sample 1, at 0.0 seconds from start; Output power is: 8.967 dBm > [snip] >> Sample 17, at 105.7 seconds from start; Output power i

time.clock() or Windows bug?

2008-06-08 Thread Theo v. Werkhoven
hi, In this code I read out an instrument during a user determined period, and save the relative time of the sample (since the start of the test) and the readback value in a csv file. #v+ from datetime import * from time import * from visa import * from random import * [..] for Reading in range(

Re: Program runs in all directories, except one..

2007-04-28 Thread Theo v. Werkhoven
The carbonbased lifeform Carsten Haese inspired comp.lang.python with: > On Sat, 2007-04-28 at 13:50 +0200, Theo v. Werkhoven wrote: >> Goodday, >> >> Something strange going on here. >> A piece of code I wrote bombs out in one of de directories under $HOME, >> bu

Re: Program runs in all directories, except one..

2007-04-28 Thread Theo v. Werkhoven
The carbonbased lifeform John Machin inspired comp.lang.python with: > On Apr 28, 9:50 pm, "Theo v. Werkhoven" <[EMAIL PROTECTED] > werkhoven.nl.invalid> wrote: >> Goodday, >> >> strg = array("B",octarray).tostring() > > The

Program runs in all directories, except one..

2007-04-28 Thread Theo v. Werkhoven
Goodday, Something strange going on here. A piece of code I wrote bombs out in one of de directories under $HOME, but not in others. Here's a snipped: #v+ def bin2asc(c): s='' for i in range(0,8): if c & 1<<(7-i): s+='1' else: s+='0' return 'b'+s def