Skip to content

feature/formatting#213

Merged
Jammy2211 merged 1 commit intomainfrom
feature/ell_comps_division_0_bug_fix
Feb 12, 2026
Merged

feature/formatting#213
Jammy2211 merged 1 commit intomainfrom
feature/ell_comps_division_0_bug_fix

Conversation

@Jammy2211
Copy link
Owner

@Jammy2211 Jammy2211 commented Feb 12, 2026

This pull request mainly consists of minor code cleanups for improved readability and consistency. The changes include reformatting function calls for better clarity and removing unnecessary blank lines in test files.

Code formatting improvements:

  • Reformatted the function calls to convolved_image_via_real_space_from and convolved_image_from in autoarray/dataset/imaging/simulator.py to use multi-line arguments, improving readability.

Test file cleanup:

  • Removed extra blank lines in test_autoarray/geometry/test_geometry_util.py to maintain consistent formatting.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR performs small formatting-only cleanups to improve readability/consistency in the imaging simulator and to remove extra blank lines in a geometry util test.

Changes:

  • Reformats Kernel2D convolution calls in SimulatorImaging.via_image_from() for improved readability.
  • Removes redundant blank lines in test_geometry_util.py.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
autoarray/dataset/imaging/simulator.py Re-wraps PSF convolution calls into multi-line formatting.
test_autoarray/geometry/test_geometry_util.py Removes unnecessary blank lines between tests.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 139 to +148
if self.use_real_space_convolution:
image = self.psf.convolved_image_via_real_space_from(
image=image, blurring_image=None, xp=xp,
image=image,
blurring_image=None,
xp=xp,
)
else:
image = self.psf.convolved_image_from(image=image, blurring_image=None, xp=xp)
image = self.psf.convolved_image_from(
image=image, blurring_image=None, xp=xp
)
Copy link

Copilot AI Feb 12, 2026

Choose a reason for hiding this comment

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

The PR title suggests a division-by-zero bug fix ("ell_comps_division_0_bug_fix"), but the changes in this PR appear to be formatting-only (argument wrapping / whitespace). Please align the title/description with the actual changes, or include the intended bug fix in this PR.

Copilot uses AI. Check for mistakes.
@Jammy2211 Jammy2211 changed the title feature/ell_comps_division_0_bug_fix feature/formatting Feb 12, 2026
@Jammy2211 Jammy2211 merged commit fcfd9f8 into main Feb 12, 2026
14 checks passed
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