Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Finish early #19

Merged
merged 1 commit into from
Feb 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading