Skip to content

feat: expose introductory imaging plots and shared contrast stretch - #679

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/cosmos-web-ring-intro-visuals
Oct 29, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/cosmos-web-ring-intro-visuals

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Summary

Expose the shared introductory imaging plot through the Galaxy plotting namespace and forward the optional asinh stretch to the Array renderer. This keeps assistant figures on the standard plotting/configuration path. Part of PyAutoLabs/autolens_assistant#168; depends on PyAutoLabs/PyAutoArray#661.

API Changes

Add autogalaxy.plot.subplot_imaging_dataset_intro and optional stretch to plot_array. Existing calls keep their defaults. See full details below.

Test Plan

  • Full Galaxy suite: 1,442 passed, 6 skipped.
  • Shared plotting/export checks: 58 passed across Array/Galaxy/Lens.
  • COSMOS-Web notebook: all 10 code cells executed; model score 3717.19.
Full API Changes (for automation & release notes)

Added

  • autogalaxy.plot.subplot_imaging_dataset_intro(dataset, output_path=None, output_filename="dataset_intro", output_format=None, colormap=None, stretch=0.01, radius=None, excluded_pixels=None) re-exports the Array compositor.

Changed Signature

  • autogalaxy.util.plot_utils.plot_array(..., stretch=None), also exported as autogalaxy.plot.plot_array (and used by Lens).

Migration

  • Optional stretch=0.01 gives an asinh display without changing data. Omission preserves existing behavior. Install with the matching Array feature/release; older Array wheels do not supply this API.

Development-only Heart override

The human authorized “Authorize development-only shipping for #168”, then approved the library revision and concurrent plotting-only work in PyAutoArray. No merge or release is authorized.

Current Heart RED reasons:

  • PyAutoArray: 4 uncommitted source change(s)
  • PyAutoGalaxy: 9 commit(s) behind origin
  • PyAutoLens: 7 commit(s) behind origin

Additional stale reasons: release validation incomplete: no rehearsal for current source; release push credential check stale (pyautolabs-bot, 49h old).

This change does not repair Heart. Required CI and the library-first release gate remain in force.

Generated by the PyAutoLabs agent workflow.

@Jammy2211 Jammy2211 added the pending-release PR queued for the next release build label Oct 29, 2026 — with ChatGPT Codex Connector
@Jammy2211
Jammy2211 merged commit f8ae3a8 into main Oct 29, 2026
4 checks passed
@Jammy2211
Jammy2211 deleted the feature/cosmos-web-ring-intro-visuals branch October 29, 2026 13:40
@pyautolabs-bot pyautolabs-bot Bot removed the pending-release PR queued for the next release build label Oct 29, 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