Skip to content

guides: COOLEST export passes the observation pixel grid; unsupported profiles section - #551

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/coolest-observation-grid
Sep 16, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/coolest-observation-grid

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Summary

Workspace follow-up to PyAutoLabs/PyAutoLens#739 (library PR: PyAutoLabs/PyAutoLens#740).

An external review of the COOLEST guide found that to_coolest wrote templates with an empty observation.pixels grid, which COOLEST's plotting API cannot render. The library fix lets the caller pass the observation grid; this guide now does so and explains why.

  • __Export__: passes shape_native=(100, 100), pixel_size=0.1, prints the written observation block, and adds a few sentences on why COOLEST needs the grid (its plotting evaluates the model on the observation pixels, taken from the data's shape and pixel scale; dataset= takes both from an al.Imaging).
  • New __Unsupported Profiles__ section after __Supported Profiles__: an MGE Basis lens light + Delaunay pixelized source example with on_unsupported="skip", showing the mass model still exports and the omitted components are listed under meta.skipped_profiles.
  • Notebook regenerated from the script (generate.py autolens from inside the workspace); llms-full.txt and workspace_index.json carry only the new contents entry.

Scripts Changed

  • scripts/guides/coolest_interop.py (+ notebooks/guides/coolest_interop.ipynb, llms-full.txt, workspace_index.json)

Library-first merge gate

Requires the new to_coolest(shape_native=, dataset=, on_unsupported=) parameters from PyAutoLabs/PyAutoLens#740. Do not merge before that PR is merged; CI here runs against installed/main PyAutoLens and will fail on the new keywords until then.

Test Plan

  • python scripts/guides/coolest_interop.py end to end against the library worktree: observation block num_pix_x/y = 100, field_of_view_x/y = [-5.0, 5.0]; round-trip max deflection difference 8.9e-16; skipped profiles printed as Basis(GaussianSph x 2) and Pixelization(Delaunay).
  • Notebook regenerated; no other notebook changed; scripts/check_sizes.sh OK.

Generated by the PyAutoLabs agent workflow.

🤖 Generated with Claude Code

… profiles section

The export cell passes shape_native + pixel_size so the template's
observation grid is populated (COOLEST plotting needs it), prints the
written block and explains why. New __Unsupported Profiles__ section
shows on_unsupported="skip" on an MGE + pixelized-source model and the
meta.skipped_profiles record. Notebook regenerated.

Refs PyAutoLabs/PyAutoLens#739

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@Jammy2211 Jammy2211 added the pending-release PR queued for the next release build label Sep 16, 2026
@Jammy2211
Jammy2211 merged commit 2c7a184 into main Sep 16, 2026
7 checks passed
@Jammy2211
Jammy2211 deleted the feature/coolest-observation-grid branch September 16, 2026 23:20
@Jammy2211 Jammy2211 removed the pending-release PR queued for the next release build label Oct 7, 2026
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.

1 participant