<div dir="ltr">Hi, <div><br></div><div>I am getting  a strange error when finding the minimum of a matrix.  The weird thing is I get this while running within iPython shell, and if I do %debug and go to the line where this fails and run the command `a = np.min(D, axis=0)`, I get no error.</div>

<div><br></div><div>Here is the trace:</div><div><br></div><div><div>draw_lines/main.pyc in haus_distance(A, B)</div><div>     28         D = D.reshape((len(A), None))</div><div>     29 </div><div>---> 30         a = np.min(D, axis=0)</div>

<div>     31 </div><div>     32         # vp = np.max(np.min(D, axis=0))</div><div><br></div><div>anaconda/lib/python2.7/site-packages/numpy/core/fromnumeric.pyc in amin(a, axis, out, keepdims)</div><div>   1985     else:</div>

<div>   1986         return _methods._amin(a, axis=axis,</div><div>-> 1987                             out=out, keepdims=keepdims)</div><div>   1988 </div><div>   1989 def alen(a):</div><div><br></div><div>anaconda/lib/python2.7/site-packages/numpy/core/_methods.pyc in _amin(a, axis, out, keepdims)</div>

<div>     12 def _amin(a, axis=None, out=None, keepdims=False):</div><div>     13     return um.minimum.reduce(a, axis=axis,</div><div>---> 14                             out=out, keepdims=keepdims)</div><div>     15 </div>

<div>     16 def _sum(a, axis=None, dtype=None, out=None, keepdims=False):</div><div><br></div><div>TypeError: an integer is required</div></div><div><br></div><div><br></div></div>