Hi Andreas, I'm glad that I pointed out that I'm new to Python. I replaced empty with zeros and my problems have now all gone away... perhaps I should have been looking more closely at the Numpy documentation. Thanks for your help! Aaron