Re: Suggestions for optimizing my code

2005-08-05 Thread Robert Kern
drife wrote: > Hello, > > I am looking for suggestions for how I might optimize my > code (make it execute faster), and make it more streamlined/ > elegent. But before describing my code, I want to state that > I am not a computer scientist (I am an atmospheric scientist), > and have but a rudimen

Re: Suggestions for optimizing my code

2005-08-05 Thread Wojciech Mula
drife wrote: > [...] > for row in range(len(Y)): > for col in range(0,row): In this case you should use 'xrange' instead 'range'. w. -- http://mail.python.org/mailman/listinfo/python-list

Suggestions for optimizing my code

2005-08-05 Thread drife
Hello, I am looking for suggestions for how I might optimize my code (make it execute faster), and make it more streamlined/ elegent. But before describing my code, I want to state that I am not a computer scientist (I am an atmospheric scientist), and have but a rudimentary understanding of OO pr