Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
jurjen93 committed Sep 7, 2023
1 parent 87a31dd commit fd9ca9e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions subtract/subtract_with_wsclean.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,13 +346,18 @@ def predict(self, h5parm: str = None, facet_regions: str = None):
for n, argument in enumerate(comparse):
if argument in ['-gridder', '-padding', '-parallel-gridding',
'-idg-mode', '-beam-aterm-update', '-pol', '-scale']:
command.append(' '.join(comparse[n:n + 2]))
if ' '.join(comparse[n:n + 2])=='-gridder wgridder-apply-primary-beam':
command.append('-gridder wgridder')
command.append('-apply-primary-beam')
else:
command.append(' '.join(comparse[n:n + 2]))
elif argument in ['-size']:
command.append(' '.join(comparse[n:n + 3]))
elif argument in ['-use-differential-lofar-beam', '-grid-with-beam',
'-use-idg', '-log-time', '-gap-channel-division',
'-apply-primary-beam']:
command.append(argument)
if argument not in command:
command.append(argument)
if argument == '-taper-gaussian':
self.scale = comparse[n + 1]
elif argument == '-scale' and '-taper-gaussian' not in comparse:
Expand All @@ -379,6 +384,7 @@ def predict(self, h5parm: str = None, facet_regions: str = None):

command += [' '.join(self.mslist)]


# run
print('\n'.join(command))
predict_cmd = open("predict.cmd", "w")
Expand Down

0 comments on commit fd9ca9e

Please sign in to comment.