Skip to content

Feature/zoom array#172

Merged
Jammy2211 merged 13 commits intomainfrom
feature/zoom_array
Apr 29, 2025
Merged

Feature/zoom array#172
Jammy2211 merged 13 commits intomainfrom
feature/zoom_array

Conversation

@Jammy2211
Copy link
Owner

Original goal of PR was to make it so .fits file outputs are zoomed in around the mask based on config, saving file disk space use.

This ended up with a large refactor moving all zoom functionality to a standalone class.

In PyAutoGalaxy and PyAutoLens this led to refactoring of .fits outputs to zoom in before output to .fits.

@Jammy2211 Jammy2211 requested a review from rhayes777 April 29, 2025 17:32
@Jammy2211 Jammy2211 merged commit b93f511 into main Apr 29, 2025
8 checks passed
@Jammy2211 Jammy2211 deleted the feature/zoom_array branch April 30, 2025 18:12
)

array, extent = self.zoomed_array_and_extent_from(array=array)
if conf.instance["visualize"]["general"]["general"]["zoom_around_mask"]:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Double general?

import autoarray as aa


def test__quantities():
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is a perfect usecase for parametrize. Even if not using parametrize it would be better as multiple separate tests

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