@requires_version('scipy', '0.17.1')
def test_spherical_harmonics():
 (az, pol) = np.meshgrid(np.linspace(0, (2 * np.pi), 30), np.linspace(0, np.pi, 20))
 for degree in range(1, 10):
  for order in range(0, (degree + 1)):
   sph = _sph_harm(order, degree, az, pol)
   sph_scipy = sph_harm(order, degree, az, pol)
   assert_allclose(sph, sph_scipy, atol=1e-07)

@ requires_version ( 'scipy' , '0.17.1' ) def test_spherical_harmonics ( ) : ( az , pol ) = np . meshgrid ( np . linspace ( 0 , ( 2 * np . pi ) , 30 ) , np . linspace ( 0 , np . pi , 20 ) ) for degree in range ( 1 , 10 ) : for order in range ( 0 , ( degree + 1 ) ) : sph = _sph_harm ( order , degree , az , pol ) sph_scipy = sph_harm ( order , degree , az , pol ) assert_allclose ( sph , sph_scipy , atol = 1e-07 )
test spherical harmonic functions .