Skip to content

Commit cbd97fa

Browse files
committed
Revert "Tweak cores for PyBDSF in skynet"
This reverts commit aee623c.
1 parent aee623c commit cbd97fa

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

scripts/skynet.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,12 @@ def write_skymodel(model: str, outname: str):
3838
skymodel.write( '{:s}\n'.format(ss_to_write) )
3939

4040
def model_from_image(modelImage: str, smodel: float, opt_coords: SkyCoord, astroSearchRadius: float = 3.0, outdir: str = '.'):
41-
# ncores=1 is set to disable multiprocessing as this sometimes triggers an
42-
# issue with socket path lengths cause by deeply nested temporary directories
43-
# that can occur during a pipeline run.
44-
# The images processed here are small, so it shouldn't affect performance meaningfully.
45-
img = bdsf.process_image(modelImage, mean_map='zero', rms_map=True, rms_box = (100,10), outdir=outdir, ncores=1)
41+
img = bdsf.process_image(modelImage, mean_map='zero', rms_map=True, rms_box = (100,10), outdir=outdir)
4642
sources = img.sources
4743
maxval = 0.
4844
for src in sources:
4945
maxval = np.max( (maxval, src.total_flux) )
50-
img = bdsf.process_image(modelImage, mean_map='zero', rms_map=True, rms_box = (100,10), advanced_opts=True, blank_limit=0.01*maxval, outdir=outdir, ncores=1)
46+
img = bdsf.process_image(modelImage, mean_map='zero', rms_map=True, rms_box = (100,10), advanced_opts=True, blank_limit=0.01*maxval, outdir=outdir)
5147
sources = img.sources
5248
# Scale model flux density to the provided value.
5349
tot_flux = 0.

0 commit comments

Comments
 (0)