feat: COOLEST export/import guide (guides/coolest_interop) - #283
Merged
Conversation
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>
This was referenced Jul 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 aTracer, verify the round trip numerically, and understand the convention mapping (East-of-North position angles, intermediate-axis radii and the power-lawtheta_Efactor, NFWsigma_crit). Requirespip install autolens[coolest].The script is named
coolest_interop.py(notcoolest.py) because the script's own directory is onsys.pathand acoolest.pyshadows thecoolestpackage — running it surfaced (and PyAutoLens#615 fixed) a relative-path bug into_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 listnotebooks/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.pyruns green end-to-end (max deflection round-trip difference 8.9e-16).Generated by the PyAutoLabs agent workflow.