Skip to content

Commit ade6118

Browse files
authored
Merge pull request #11 from zonca/py3_fix
Fix missing parentheses in print
2 parents b19e560 + 0c95cfe commit ade6118

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

python/libsharp/tests/test_legendre_table.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from __future__ import print_function
12
import numpy as np
23

34
from numpy.testing import assert_almost_equal
@@ -12,8 +13,8 @@ def test(theta, m, lmax):
1213

1314
Plm_p = sph_harm(m, np.arange(m, lmax + 1), 0, theta)[None, :]
1415
if not np.allclose(Plm_p, Plm):
15-
print Plm_p
16-
print Plm
16+
print(Plm_p)
17+
print(Plm)
1718
return ok_, np.allclose(Plm_p, Plm)
1819

1920
yield test(np.pi/2, 0, 10)

0 commit comments

Comments
 (0)