Skip to content

Commit

Permalink
parallelgridding
Browse files Browse the repository at this point in the history
  • Loading branch information
jurjen93 committed Nov 7, 2023
1 parent 58f0c78 commit fbec9ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions subtract/subtract_with_wsclean.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,10 +351,10 @@ def predict(self, h5parm: str = None, facet_regions: str = None):

f = fits.open(self.model_images[0])
comparse = str(f[0].header['HISTORY']).replace('\n', '').split()
command = ['wsclean', '-predict', f'-name {self.model_images[0].split("-")[0]}', '-mem 50']
command = ['wsclean', '-predict', f'-name {self.model_images[0].split("-")[0]}', '-mem 50', '-parallel-gridding 2']

for n, argument in enumerate(comparse):
if argument in ['-gridder', '-padding', '-parallel-gridding',
if argument in ['-gridder', '-padding',
'-idg-mode', '-beam-aterm-update', '-pol', '-scale']:
if ' '.join(comparse[n:n + 2])=='-gridder wgridder-apply-primary-beam':
command.append('-gridder wgridder')
Expand Down

0 comments on commit fbec9ca

Please sign in to comment.