0
def invert_map(x):
y = _np.empty_like(x)
y[x] = _np.arange(len(x))
return y
Result gives this in this function :
File "E: Anaconda3 lib site-Packages arlpy comms.py", line 74, in invert_map y[x] = _np.arange(Len(x))
Typeerror: Len() of unsized Object
What is your cause? How to solve it?
What the
xbeing passed on to him to shoot that mistake?– Jefferson Quesado
The function
lenmakes use of the method__len__thereforexneeds to be the type that has the implementation of this method, otherwise this error will be released.– Woss