From cdb11e97d060638ac0ec288ceb0fdc56e84cf8c8 Mon Sep 17 00:00:00 2001 From: Andrea Zonca Date: Wed, 15 Nov 2017 07:27:09 -0800 Subject: [PATCH] launch test --- python/libsharp/tests/test_sht.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/python/libsharp/tests/test_sht.py b/python/libsharp/tests/test_sht.py index 459f446..63ccf20 100644 --- a/python/libsharp/tests/test_sht.py +++ b/python/libsharp/tests/test_sht.py @@ -1,7 +1,4 @@ import numpy as np -import healpy -from scipy.special import legendre -from scipy.special import p_roots from numpy.testing import assert_allclose import libsharp @@ -28,7 +25,8 @@ def test_basic(): map = libsharp.synthesis(grid, order, np.repeat(alm[None, None, :], 3, 0), comm=MPI.COMM_WORLD) assert np.all(map[2, :] == map[1, :]) and np.all(map[1, :] == map[0, :]) map = map[0, 0, :] - if rank == 0: - healpy.mollzoom(map) - from matplotlib.pyplot import show - show() + print(rank, "shape", map.shape) + print(rank, "mean", map.mean()) + +if __name__=="__main__": + test_basic()