Skip to content

feat: COOLEST export/import guide (guides/coolest_interop) - #283

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/coolest-standard-support
Jul 17, 2026
Merged

feat: COOLEST export/import guide (guides/coolest_interop)#283
Jammy2211 merged 1 commit into
mainfrom
feature/coolest-standard-support

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Summary

Adds a minimal practitioner guide for the new COOLEST interop layer (al.interop.coolest, PyAutoLens#612): export a lens model's analytic profile parameters to a COOLEST JSON template, import a template back as a Tracer, verify the round trip numerically, and understand the convention mapping (East-of-North position angles, intermediate-axis radii and the power-law theta_E factor, NFW sigma_crit). Requires pip install autolens[coolest].

The script is named coolest_interop.py (not coolest.py) because the script's own directory is on sys.path and a coolest.py shadows the coolest package — running it surfaced (and PyAutoLens#615 fixed) a relative-path bug in to_coolest/from_coolest.

Scripts Changed

  • scripts/guides/coolest_interop.py — new COOLEST export/import guide (runs end-to-end; round trip agrees to machine precision)
  • scripts/guides/README.md — added the guide to the files list
  • notebooks/guides/coolest_interop.ipynb, notebooks/guides/README.md, llms-full.txt, workspace_index.json — regenerated (catalogue diff contains only the new guide)

Upstream PR

PyAutoLabs/PyAutoLens#613 (MERGED), PyAutoLabs/PyAutoLens#615 (MERGED)

Test Plan

  • python scripts/guides/coolest_interop.py runs green end-to-end (max deflection round-trip difference 8.9e-16).
  • Additive-only change — no existing script or config touched, so no curated smoke regression surface; companion validation script in autolens_workspace_test exercises the same API with assertions.

Generated by the PyAutoLabs agent workflow.

New guide for al.interop.coolest (PyAutoLens#613/#615): export a lens
model to a COOLEST JSON template, import it back as a Tracer, verify the
round trip, with convention notes (East-of-North angles, intermediate-
axis radii, NFW sigma_crit). Notebook + catalogue regenerated. Named
coolest_interop because a guides/coolest.py would shadow the coolest
package on sys.path.

Part of PyAutoLabs/PyAutoLens#612.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@Jammy2211 Jammy2211 added the pending-release PR queued for the next release build label Jul 17, 2026
@Jammy2211
Jammy2211 merged commit 0ae9604 into main Jul 17, 2026
8 checks passed
@Jammy2211
Jammy2211 deleted the feature/coolest-standard-support branch July 17, 2026 07:40
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