diff --git a/monte_carlo.py b/monte_carlo.py index c7312dff1d3235b04dbab823a465d15a02bb9e7d..f2279bde0cfb73175c1708e8a8f0946829e8fd80 100644 --- a/monte_carlo.py +++ b/monte_carlo.py @@ -56,7 +56,7 @@ def fake_worker(jkiter, min_threshold=2, nsources=8**2, flux=1*u.Jy, img.uncertainty.array *= std # Actually rather slow... maybe check the code ? - print(flux) + # print(flux) img.add_gaussian_sources(nsources=nsources, within=within, peak_flux=flux, cat_gen=cat_gen, **kwargs) @@ -261,7 +261,7 @@ for _flux in flux: outfile = outdir / fname phdu = fits.PrimaryHDU() - phdu.header['influx'] = '{}'.format(flux) + phdu.header['influx'] = '{}'.format(_flux) phdu.header['nsim'] = nsim phdu.header['sourcespersim'] = nsources phdu.header['dthresh'] = min_detection_threshold