You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Appears that as of 1.12, numpy float64s can no longer be used as indices. This was encountered on a system with Python 2.7.14 and numpy 1.13.3:
File "/usr/lib/python2.7/site-packages/commpy/channelcoding/convcode.py", line 337, in conv_encode
puncture_matrix[0:].sum()/np.size(puncture_matrix, 1), 'int')
TypeError: 'numpy.float64' object cannot be interpreted as an index
Rolling back to 1.11.0 shows a warning:
/usr/lib/python2.7/site-packages/commpy/channelcoding/convcode.py:337: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
puncture_matrix[0:].sum()/np.size(puncture_matrix, 1), 'int')
/home/threexc/Projects/Recorder/T9_FrameGenerator/make_symbol.py:1047: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
(_,curr_data_time,_,_) = make_symbol(scr_coded[i*ncbps:(i+1)*ncbps],rate_dict[rate][1],i+1)
The text was updated successfully, but these errors were encountered:
I can't reproduce this problem with the unit test under python 2 nor under 3 and the latest version of numpy. I close but don't hesitate to reopen with a code showing the error so that I can have a closer look.
Appears that as of 1.12, numpy float64s can no longer be used as indices. This was encountered on a system with Python 2.7.14 and numpy 1.13.3:
Rolling back to 1.11.0 shows a warning:
The text was updated successfully, but these errors were encountered: