Skip to content

Commit

Permalink
add resize_thread_pool to stokes2im
Browse files Browse the repository at this point in the history
  • Loading branch information
landmanbester committed Dec 4, 2024
1 parent 9e5bcfa commit 78740a8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pfb/utils/stokes2im.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
from casacore.quanta import quantity
from datetime import datetime
from ducc0.fft import c2r, r2c, good_size
from ducc0.misc import resize_thread_pool
from africanus.constants import c as lightspeed
import gc
iFs = np.fft.ifftshift
Expand Down Expand Up @@ -41,6 +42,7 @@ def single_stokes_image(
timeid=None,
wid=None):

resize_thread_pool(opts.nthreads)
fieldid = ds.FIELD_ID
ddid = ds.DATA_DESC_ID
scanid = ds.SCAN_NUMBER
Expand Down

0 comments on commit 78740a8

Please sign in to comment.