Repository navigation
guides: COOLEST export passes the observation pixel grid; unsupported profiles section - #551
Merged
Merged
Conversation
… 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>
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
Workspace follow-up to PyAutoLabs/PyAutoLens#739 (library PR: PyAutoLabs/PyAutoLens#740).
An external review of the COOLEST guide found that
to_coolestwrote templates with an emptyobservation.pixelsgrid, 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__: passesshape_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 anal.Imaging).__Unsupported Profiles__section after__Supported Profiles__: an MGEBasislens light + Delaunay pixelized source example withon_unsupported="skip", showing the mass model still exports and the omitted components are listed undermeta.skipped_profiles.generate.py autolensfrom inside the workspace);llms-full.txtandworkspace_index.jsoncarry 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.pyend to end against the library worktree: observation blocknum_pix_x/y = 100,field_of_view_x/y = [-5.0, 5.0]; round-trip max deflection difference 8.9e-16; skipped profiles printed asBasis(GaussianSph x 2)andPixelization(Delaunay).scripts/check_sizes.shOK.Generated by the PyAutoLabs agent workflow.
🤖 Generated with Claude Code