Commit d4ece132 authored by LUSTIG Peter's avatar LUSTIG Peter

write error correction

parent 9bed05e4
......@@ -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
......
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