<div dir="ltr"><div><div>On Thu, Jun 13, 2013 at 2:30 AM, Pauli Virtanen <span dir="ltr"><<a href="mailto:pav@iki.fi" target="_blank">pav@iki.fi</a>></span> wrote:<br></div></div><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="im">Blake Griffith <blake.a.griffith <at> <a href="http://gmail.com" target="_blank">gmail.com</a>> writes:<br>

> Hello SciPy, I was investigating why my recent PR failed to<br>
> pass travis, and it looks like a bunch of tests errors appeared<br>
> in sparse. I get:<br>
><br>
> FAILED (KNOWNFAIL=27, SKIP=169, errors=50)<br>
<br>
</div>The Travis build runs with the latest released version of Numpy<br>
(i.e. 1.7.1), so it will not catch regressions/deprecations/etc.<br>
in Numpy master.<br>
<br>
[clip: DeprecationWarnings and TypeErrors]<br>
<div class="im">> I can submit a fix for the tests that are now raising<br>
> a DepreciationWarning.<br>
<br>
</div>That would be useful.<br>
<div class="im"><br>
> But I can't figure out where the TypeError popped up. Or<br>
> what is causing it. Some help here would be appreciated.<br>
<br>
</div>I can take a look if I manage to reproduce it.<br>
<span class=""><font color="#888888"><br>
--<br>
Pauli Virtanen<br></font></span></blockquote><div> <br></div>This should help, every traceback for the type errors ends in the same place:<div><br></div><div>...</div><div><br><div><div>======================================================================</div>
<div>ERROR: test_expm (test_base.TestLIL)</div><div>----------------------------------------------------------------------</div><div>Traceback (most recent call last):</div><div>  File "/home/blake/.virtualenvs/scipy/local/lib/python2.7/site-packages/scipy/sparse/tests/test_base.py", line 168, in test_expm</div>
<div>    Mexp = scipy.linalg.expm(M)</div><div>  File "/home/blake/.virtualenvs/scipy/local/lib/python2.7/site-packages/scipy/linalg/matfuncs.py", line 57, in expm</div><div>    return scipy.sparse.linalg.expm(A)</div>
<div>  File "/home/blake/.virtualenvs/scipy/local/lib/python2.7/site-packages/scipy/sparse/linalg/matfuncs.py", line 331, in expm</div><div>    s = s + _ell(2**-s * A, 13)</div><div>  File "/home/blake/.virtualenvs/scipy/local/lib/python2.7/site-packages/scipy/sparse/linalg/matfuncs.py", line 493, in _ell</div>
<div>    alpha = est / (_exact_1_norm(A) * abs_c_recip)</div><div>TypeError: unsupported operand type(s) for *: 'numpy.float64' and 'long'</div><div><br></div><div>----------------------------------------------------------------------</div>
<div>Ran 6558 tests in 81.194s</div><div><br></div><div>FAILED (KNOWNFAIL=23, SKIP=169, errors=34)</div><div>Out[2]: <nose.result.TextTestResult run=6558 errors=34 failures=0></div></div></div><div> </div></div><br>
</div></div>