Re: Any built-in function for smallest positive floating point number?

2009-08-11 Thread Maria Liukis
A bit more of googling gave me an answer: >>> import numpy as np >>> np.finfo(np.double).tiny array(2.2250738585072014e-308) >>> Thanks, Masha liu...@usc.edu On Aug 11, 2009, at 10:29 AM, Maria Liukis wrote: Hello everybody, Is somebody

Any built-in function for smallest positive floating point number?

2009-08-11 Thread Maria Liukis
Hello everybody, Is somebody aware of built-in Python's function that would return a value for smallest positive double precision floating point number (analogous to 'realmin' in Matlab). Python has built-in sys.maxint but I could not find anything for float. Any help would be greatly app

Re: shutil.rmtree raises "OSError: [Errno 39] Directory not empty" exception

2009-07-10 Thread Maria Liukis
Thanks for pointing out the parameters for ignore_errors and an onerror callback function. I have been running this code for more than an year, and this is the very first time I see the problem. We switched to the NFS mounted storage though, but there is nothing unusual logged by the system

shutil.rmtree raises "OSError: [Errno 39] Directory not empty" exception

2009-07-10 Thread Maria Liukis
Hello, Has anybody seen an exception "OSError: [Errno 39] Directory not empty" raised by shutil.rmtree? The code that raised an exception creates a lot of directories with files, and then removes them. I got an exception when one of such directories was removed. Here is the backtrace: