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

Detect and retry wsclean divergence error #154

Merged
merged 3 commits into from
Jul 30, 2024
Merged

Detect and retry wsclean divergence error #154

merged 3 commits into from
Jul 30, 2024

Conversation

tjgalvin
Copy link
Owner

In some fairly rare instances wsclean diverges during cleaning. However, a call back function is supplied and evaluated against the output logs from a wsclean command, and if a line of output has something to the effect of Peak found at X kJy a CleanDivergenceError is raised.

This is a pretty simple attempt to capture that exception, and rerun wsclean with a larger image size and lower major gain. It is not bullet proof by any stretch, but it could help the occasional error where we have a bright source outside the field-of-view for a particular beam.

@tjgalvin tjgalvin merged commit a8230ec into main Jul 30, 2024
2 checks passed
@tjgalvin tjgalvin deleted the wscleandivergence branch July 30, 2024 02:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant