Plot improvements: rename fits functions, move fits_to_fits, add cb_unit#310
Merged
Plot improvements: rename fits functions, move fits_to_fits, add cb_unit#310
Conversation
…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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
save_*_fits→fits_*functions (save_galaxy_images_fits→fits_galaxy_images,save_adapt_images_fits→fits_adapt_images)fits_to_fits(imaging) → three individual functionsfits_fit,fits_galaxy_images,fits_model_galaxy_imagesinautogalaxy/imaging/plot/fit_imaging_plots.pyfits_to_fits(interferometer) →fits_galaxy_images,fits_dirty_imagesinautogalaxy/interferometer/plot/fit_interferometer_plots.pymodel/plotter.pyfiles now call these functions directly withshould_plot()guardscb_unitparameter to autogalaxyplot_utils.plot_arraywrapper, forward to underlying autoarray call (fixesTypeErrorin interferometer subplot tests)subplot_prefix in threeshould_plot()calls inanalysis/plotter.pyTest plan
python -m pytest test_autogalaxy/passes🤖 Generated with Claude Code