Commit 8132caa4 authored by LUSTIG Peter's avatar LUSTIG Peter

Fixed memory leak.

parent d4ece132
......@@ -206,11 +206,11 @@ min_source_dist = 2 * nm.beam.fwhm_pix.value
print('Done in {:.2f}s'.format(clock()-t0))
print('Begin Monte Carlo')
jk_iter_list = [jk_iter] * nsim
p = Pool(ncores)
for _flux in flux:
p = Pool(ncores)
helpfunc = partial(fake_worker, **{'min_threshold':
min_detection_threshold,
'nsources': nsources, 'flux': _flux,
......
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