ndscigdata/RAISR

crash when run the demo

idoit opened this issue · 0 comments

idoit commented

Hi,I use the python test.py,and get the message like this :
RAISR/hashTable.py:26: RuntimeWarning: divide by zero encountered in double_scalars
strength = np.floor(strength/(1/Qstrenth)-1)

Traceback (most recent call last):
File "test.py", line 27, in
[angle,strenth,coherence] = hashTable(patch,Qangle,Qstrenth,Qcoherence)
File "/RAISR/hashTable.py", line 29, in hashTable
return int(angle),int(strength),int(coherence)
OverflowError: cannot convert float infinity to integer

I find the reason, because I use python2.7