Merge pull request #11 from zonca/py3_fix

Fix missing parentheses in print
This commit is contained in:
Dag Sverre Seljebotn 2017-11-19 21:01:25 +01:00 committed by GitHub
commit ade6118629
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,3 +1,4 @@
from __future__ import print_function
import numpy as np
from numpy.testing import assert_almost_equal
@ -12,8 +13,8 @@ def test_compare_legendre_table_with_scipy():
Plm_p = sph_harm(m, np.arange(m, lmax + 1), 0, theta)[None, :]
if not np.allclose(Plm_p, Plm):
print Plm_p
print Plm
print(Plm_p)
print(Plm)
return ok_, np.allclose(Plm_p, Plm)
yield test(np.pi/2, 0, 10)