Skip to content

Add more control over multiscale clean scales#362

Open
thomaswilliamsastro wants to merge 1 commit into
masterfrom
multiscale-beam-scales
Open

Add more control over multiscale clean scales#362
thomaswilliamsastro wants to merge 1 commit into
masterfrom
multiscale-beam-scales

Conversation

@thomaswilliamsastro

@thomaswilliamsastro thomaswilliamsastro commented Jun 24, 2026

Copy link
Copy Markdown
Collaborator

Fixes #270

This PR adds two new options for setting multiscale clean scales, clean_scales_beam and clean_scales_auto.

The list clean_scales_beam option allows you to define clean scales as multiples of the beam. If both clean_scales_beam and clean_scales_arcsec are defined, then these will be both be used to form a single list of clean scales.

The boolean clean_scales_auto option, allows for fully automatic setting of the clean scales based on the beam and the LAS of the data. If this is set to True, then will add scales of [0, beam FWHM], then continue doubling up to the LAS of the data. Note that setting this will override clean_scales_arcsec and clean_scales_beam.

  • Add clean_scales_beam
  • Add clean_scales_auto
  • Clean scales are now rounded, rather than simply cast to int
  • Update docs
  • Update CHANGELOG

@codecov

codecov Bot commented Jun 24, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 9.37500% with 58 lines in your changes missing coverage. Please review.
✅ Project coverage is 6.29%. Comparing base (b90495d) to head (ebf201b).
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
phangsPipeline/clean_call.py 8.57% 32 Missing ⚠️
phangsPipeline/handlerKeys.py 11.11% 24 Missing ⚠️
phangsPipeline/handlerImaging.py 0.00% 1 Missing ⚠️
phangsPipeline/handlerImagingChunked.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@          Coverage Diff           @@
##           master    #362   +/-   ##
======================================
  Coverage    6.28%   6.29%           
======================================
  Files          38      38           
  Lines       15209   15261   +52     
  Branches     3654    3667   +13     
======================================
+ Hits          956     960    +4     
- Misses      14239   14287   +48     
  Partials       14      14           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

This PR adds two new options for setting multiscale clean scales, ``clean_scales_beam`` and ``clean_scales_auto``.

The list ``clean_scales_beam`` option allows you to define clean scales as multiples of the beam. If both ``clean_scales_beam`` and ``clean_scales_arcsec`` are defined, then these will be both be used to form a single list of clean scales.

The boolean ``clean_scales_auto`` option, allows for fully automatic setting of the clean scales based on the beam and the LAS of the data. If this is set to True, then will add scales of [0, beam FWHM], then continue doubling up to the LAS of the data. Note that setting this will override ``clean_scales_arcsec`` and ``clean_scales_beam``.

- Add ``clean_scales_beam``
- Add ``clean_scales_auto``
- Clean scales are now rounded, rather than simply cast to int
- Update docs
- Update CHANGELOG
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.

Add clean scales as ratios of the beam size

1 participant