From: Dr N. O'B. <no...@ca...> - 2006-05-24 18:27:59
|
Sorry about that error on the unittests. After googling, I found: http://mail.python.org/pipermail/python-list/2005-November/311235.html which explains that you always get True when you compare Numeric arrays, and you need to use Numeric.equals(a,b) rather than a==b. In short, I've added an assert called assertArrayEquals based on the above webpage and a recipe in the Python Cookbook. This checks the shape, the type (e.g. integer, float) and the content of an array. Needless to say, as you found, there are several failures now....(just when they thought it was all over :-) Regards, Noel |