Commit ce03c1cc authored by LUSTIG Peter's avatar LUSTIG Peter

New master

parent 9b165143
......@@ -108,23 +108,6 @@ helpfunc = partial(cp.completness_purity_2, flux, **{"nsources":8**2, "within":(
"shape":shape_4D[0:3],
"wcs":wcs_4D.sub([1, 2, 3]), "jk_map":data})
'''
comp, comp_n, pur, pur_n = cp.completness_purity_2(flux, nsim=sim_per_core,
nsources=8**2, within=(0, 1),
shape=shape_4D[0:3],
wcs=wcs_4D.sub([1, 2, 3]), jk_map=data)
'''
'''
all_comp = comm.gather(comp, root=0)
all_comp_n = comm.gather(comp_n, root=0)
all_pur = comm.gather(pur, root=0)
all_pur_n = comm.gather(pur_n, root=0)
'''
#print('-----before-------')
#a, b, c, d = helpfunc(nsim=3)
#print('-----after-------')
#sys.exit()
pool = Pool(ncore)
print(sim_per_core)
......@@ -143,9 +126,6 @@ with np.errstate(divide='ignore', invalid='ignore'):
completness = all_comp / all_comp_n[..., np.newaxis]
purity = all_pur / all_pur_n
#print(len(tmpres))
#print(np.array(comp).shape)
if (method == "unknown" and "/" in noisefile):
method = noisefile.split("/")[-2]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment