Skip to content

feat: from_coolest(intermediate=True) — rebuild PEMDs as PowerLawIntermediate#617

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/coolest-powerlaw-herculens
Jul 17, 2026
Merged

feat: from_coolest(intermediate=True) — rebuild PEMDs as PowerLawIntermediate#617
Jammy2211 merged 1 commit into
mainfrom
feature/coolest-powerlaw-herculens

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Summary

Threads the new intermediate option (PyAutoLens#616) through al.interop.coolest.from_coolest: with intermediate=True, COOLEST PEMD profiles are rebuilt as ag.mp.PowerLawIntermediate — the template's theta_E becomes the profile's einstein_radius unchanged — instead of the default ag.mp.PowerLaw (identical mass distribution either way). Depends on the companion PyAutoGalaxy PR on the same branch (feature/coolest-powerlaw-herculens) — merge that first.

API Changes

Added only — optional intermediate: bool = False kwarg on from_coolest; default behaviour unchanged.
See full details below.

Test Plan

  • New test: export a PowerLawIntermediate model, from_coolest(intermediate=True) returns PowerLawIntermediate with the exact θ_E and identical tracer deflections.
  • Full suite: 387 passed.
  • Follow-up in this task: herculens cross-code parity script in autolens_workspace_test.
Full API Changes (for automation & release notes)

Added

  • autolens.interop.coolest.from_coolest(..., intermediate=False) — new optional kwarg

Generated by the PyAutoLabs agent workflow.

from_coolest(..., intermediate=True) rebuilds COOLEST PEMD profiles as
ag.mp.PowerLawIntermediate (theta_E passes through unchanged) instead of
the default PowerLaw. Companion to the PyAutoGalaxy PowerLawIntermediate
PR on this branch.

Part of #616.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@Jammy2211

Copy link
Copy Markdown
Collaborator Author

Workspace PR: PyAutoLabs/autolens_workspace_test#175 (herculens parity script — all checks PASS)

@Jammy2211
Jammy2211 merged commit b9c36cd into main Jul 17, 2026
3 of 5 checks passed
@Jammy2211
Jammy2211 deleted the feature/coolest-powerlaw-herculens branch July 17, 2026 08:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pending-release PR queued for the next release build

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant