Skip to content

Feature/images refactor#335

Merged
Jammy2211 merged 21 commits into
mainfrom
feature/images_refactor
Feb 21, 2025
Merged

Feature/images refactor#335
Jammy2211 merged 21 commits into
mainfrom
feature/images_refactor

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Refactors image output such that:

  • Removes config customization on the level of individual figures, as this made configs too complex and can be achieved via AggretorImages.

  • Outputs .fits files containing key images as .fits output of key information is key, with these grouped packages suited to AggregatorFits object.

  • Creates a nasty new function in MultiFigurePlotter for outputting .fits groups via Plotter interface, quite hacky but works for now.

@Jammy2211 Jammy2211 requested a review from rhayes777 February 21, 2025 10:20

mat_plot_2d.use_log10 = False
if should_plot("fits_tracer"):
number_plots = 4

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This hardcoded variable looks a bit weird

plot_path = path.join(plot_path, "fit_dataset")
# visibilities = ag.util.array_2d.numpy_array_2d_via_fits_from(
# file_path=path.join(plot_path, "fit.fits"), hdu=0
# )

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

commented code

@Jammy2211 Jammy2211 merged commit f831141 into main Feb 21, 2025
@Jammy2211 Jammy2211 deleted the feature/images_refactor branch March 24, 2025 19:50
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.

2 participants