Skip to content

Plot improvements: rename fits functions, move fits_to_fits, add cb_unit#310

Merged
Jammy2211 merged 1 commit intomainfrom
feature/plot-improvements-3
Mar 26, 2026
Merged

Plot improvements: rename fits functions, move fits_to_fits, add cb_unit#310
Jammy2211 merged 1 commit intomainfrom
feature/plot-improvements-3

Conversation

@Jammy2211
Copy link
Copy Markdown
Collaborator

Summary

  • Rename save_*_fitsfits_* functions (save_galaxy_images_fitsfits_galaxy_images, save_adapt_images_fitsfits_adapt_images)
  • Move fits_to_fits (imaging) → three individual functions fits_fit, fits_galaxy_images, fits_model_galaxy_images in autogalaxy/imaging/plot/fit_imaging_plots.py
  • Move fits_to_fits (interferometer) → fits_galaxy_images, fits_dirty_images in autogalaxy/interferometer/plot/fit_interferometer_plots.py
  • Both model/plotter.py files now call these functions directly with should_plot() guards
  • Add cb_unit parameter to autogalaxy plot_utils.plot_array wrapper, forward to underlying autoarray call (fixes TypeError in interferometer subplot tests)
  • Restore subplot_ prefix in three should_plot() calls in analysis/plotter.py

Test plan

  • python -m pytest test_autogalaxy/ passes

🤖 Generated with Claude Code

…odules, add cb_unit to plot_array

- Rename save_*_fits → fits_* (save_galaxy_images_fits→fits_galaxy_images,
  save_adapt_images_fits→fits_adapt_images) in galaxies_plots and adapt_plots
- Move fits_to_fits (imaging) → fits_fit, fits_galaxy_images, fits_model_galaxy_images
  in autogalaxy/imaging/plot/fit_imaging_plots.py
- Move fits_to_fits (interferometer) → fits_galaxy_images, fits_dirty_images
  in autogalaxy/interferometer/plot/fit_interferometer_plots.py
- Both model/plotter.py files now call these functions directly with should_plot() guards
- Add cb_unit parameter to autogalaxy plot_utils.plot_array wrapper and forward
  it to the underlying autoarray plot_array call (fixes TypeError in interferometer plots)
- Restore subplot_ prefix in three should_plot() calls in analysis/plotter.py

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@Jammy2211 Jammy2211 merged commit 13f65ce into main Mar 26, 2026
0 of 8 checks passed
@Jammy2211 Jammy2211 deleted the feature/plot-improvements-3 branch March 26, 2026 13:56
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