Re: [myhdl-list] _Waiter.diff [was: intbv.saturate, intbv.wrap]
Brought to you by:
jandecaluwe
From: Thomas T. <tho...@de...> - 2008-07-23 09:04:25
|
> This would compare using '=='. Thomas has proposed to replace > this with 'is' test. I still don't really see what difference > this would make. Can you explain issue/error that you > are seeing? I proposed to remove the tuple because there is a problem with numpy comparison. This is a short test on the interactiv shell. =============================================== >>> a=[1,2] >>> b=[4,5] >>> a in b = False >>> from numpy import arange >>> a = arange(3) >>> a in b --------------------------------------------------------------------------- ValueError Traceback (most recent call last) ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all() ================================================= |