Skip to content

Jax hot fix#273

Merged
NiekWielders merged 2 commits into
mainfrom
jax_hot_fix
Feb 6, 2026
Merged

Jax hot fix#273
NiekWielders merged 2 commits into
mainfrom
jax_hot_fix

Conversation

@NiekWielders
Copy link
Copy Markdown
Collaborator

Jax fix for the use of mass_light_dark.

Copy link
Copy Markdown
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 fixes Jax compatibility issues in the autogalaxy codebase related to mass profile calculations and linear light profile intensity handling.

Changes:

  • Added xp parameter propagation to deflections_yx_2d_from method in Basis class for Jax array backend compatibility
  • Added explicit float conversion for reconstruction values extracted from inversions to ensure Python native float type

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
autogalaxy/profiles/basis.py Passes the xp parameter to mass profile deflections calculations, enabling Jax array backend support
autogalaxy/abstract_fit.py Converts reconstruction array elements to Python float type for dictionary storage, ensuring compatibility with Jax arrays

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

@NiekWielders NiekWielders merged commit 0644982 into main Feb 6, 2026
14 checks passed
@NiekWielders NiekWielders deleted the jax_hot_fix branch February 12, 2026 15:44
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