Skip to content

Commit

Permalink
CHG: adding column checking before running flag_dataset
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelcarcamov committed Dec 28, 2022
1 parent 3a6325a commit 232452e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/snow/selfcalibration/selfcal.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,9 +413,9 @@ def _flag_dataset(

if datacolumn is None:
if is_column_in_ms(self.visfile, "CORRECTED_DATA"):
datacolumn = "RESIDUAL"
datacolumn = "residual"
else:
datacolumn = "RESIDUAL_DATA"
datacolumn = "residual_data"

flagdata(
vis=self.visfile,
Expand Down

0 comments on commit 232452e

Please sign in to comment.