Coverage for estats/stats/Fulltest.py: 100%

Shortcuts on this page

r m x   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

13 statements  

1import numpy as np 

2import healpy as hp 

3 

4 

5def context(): 

6 """ 

7 Defines the parameters used by the plugin 

8 """ 

9 stat_type = "multi" 

10 

11 required = ["NSIDE"] 

12 defaults = [1024] 

13 types = ["int"] 

14 return required, defaults, types, stat_type 

15 

16 

17def Fulltest(maps, weights, ctx): 

18 map = np.zeros(hp.pixelfunc.nside2npix(ctx['NSIDE'])) 

19 for key in maps.keys(): 

20 map = maps[key] * weights[key] 

21 return np.asarray([[np.mean(map), np.std(map)]])