Skip to content

Commit cdb11e9

Browse files
committed
launch test
1 parent 8c33a5e commit cdb11e9

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

python/libsharp/tests/test_sht.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
import numpy as np
2-
import healpy
3-
from scipy.special import legendre
4-
from scipy.special import p_roots
52
from numpy.testing import assert_allclose
63
import libsharp
74

@@ -28,7 +25,8 @@ def test_basic():
2825
map = libsharp.synthesis(grid, order, np.repeat(alm[None, None, :], 3, 0), comm=MPI.COMM_WORLD)
2926
assert np.all(map[2, :] == map[1, :]) and np.all(map[1, :] == map[0, :])
3027
map = map[0, 0, :]
31-
if rank == 0:
32-
healpy.mollzoom(map)
33-
from matplotlib.pyplot import show
34-
show()
28+
print(rank, "shape", map.shape)
29+
print(rank, "mean", map.mean())
30+
31+
if __name__=="__main__":
32+
test_basic()

0 commit comments

Comments
 (0)