Skip to content

Commit

Permalink
Finish early
Browse files Browse the repository at this point in the history
  • Loading branch information
AlecThomson committed Feb 16, 2024
1 parent 4e2f796 commit 717b6ec
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions fixms/fix_ms_corrs.py
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,15 @@ def fix_ms_corrs(
pol_axis = get_pol_axis(ms, feed_idx=feed_idx)
logger.info(f"Polarization axis is {pol_axis}", ms=ms, app_params=_function_args)

# Check for pol_axis = 0deg - no correction needed
if pol_axis == 0 * u.deg and not fix_stokes_factor:
logger.critical(
f"Pol axis is 0deg. No correction needed. Exiting...",
ms=ms,
app_params=_function_args,
)
return

# Get the data chunk by chunk and convert the correlations
# then write them back to the MS in the 'data_column' column
data_chunks = get_data_chunk(ms, chunksize, data_column=data_column)
Expand Down

0 comments on commit 717b6ec

Please sign in to comment.