8 Sep
2006
8 Sep
'06
8:03 a.m.
This was just reported on mpl-dev: In [1]: from numpy.oldnumeric import mlab In [2]: mlab.eye(3) --------------------------------------------------------------------------- exceptions.NameError Traceback (most recent call last) /home/darren/<ipython console> /usr/lib64/python2.4/site-packages/numpy/oldnumeric/mlab.py in eye(N, M, k, typecode, dtype) 22 dtype = convtypecode(typecode, dtype) 23 if M is None: M = N ---> 24 m = nn.equal(nn.subtract.outer(nn.arange(N), nn.arange(M)),-k) 25 if m.dtype != dtype: 26 return m.astype(dtype) NameError: global name 'nn' is not defined