-
Notifications
You must be signed in to change notification settings - Fork 14
Feature/linalg mixed precision #275
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -323,6 +323,7 @@ def cls_light_profile_func_list_galaxy_dict_from( | |
| psf=self.dataset.psf, | ||
| light_profile_list=light_profile_list, | ||
| regularization=light_profile.regularization, | ||
| settings=self.settings_inversion, | ||
| xp=self._xp, | ||
| ) | ||
|
|
||
|
|
@@ -486,6 +487,7 @@ def mapper_from( | |
| return mapper_from( | ||
| mapper_grids=mapper_grids, | ||
| regularization=regularization, | ||
| settings=self.settings_inversion, | ||
| preloads=self.preloads, | ||
| xp=self._xp, | ||
| ) | ||
|
Comment on lines
487
to
493
|
||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -145,6 +145,7 @@ def __init__( | |||||
| psf: Optional[aa.Kernel2D], | ||||||
| light_profile_list: List[LightProfileLinear], | ||||||
| regularization=Optional[aa.reg.Regularization], | ||||||
|
||||||
| regularization=Optional[aa.reg.Regularization], | |
| regularization: Optional[aa.reg.Regularization] = None, |
Copilot
AI
Feb 8, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Kernel2D.convolved_image_from(...) is now called with use_mixed_precision=.... Because autoarray is an unpinned dependency, this will raise TypeError: got an unexpected keyword argument in environments using an older autoarray that doesn’t support this kwarg. Consider (1) pinning/bumping the minimum autoarray version that introduces this parameter, or (2) adding a backward-compatible call path (e.g. only passing the kwarg when supported).
Copilot
AI
Feb 8, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The mixed-precision behavior isn’t covered by tests: existing LightProfileLinearObjFuncList tests construct the class without settings, so they don’t validate that settings.use_mixed_precision is forwarded into the PSF convolution. Add a unit test that sets SettingsInversion(use_mixed_precision=True) (or equivalent) and asserts the mixed-precision path is exercised (e.g. via a spy/mocked convolved_image_from).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
print(...)statements will emit output during normal library usage and can be very noisy in pipeline runs. Please remove these debug prints or replace them with optional logging behind a logger / verbosity flag.