Skip to content

fix(smoke): extend latent_variables smoke to new 8-key registry - #133

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/flux-latents-raw
May 28, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/flux-latents-raw

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Summary

PyAutoLabs/PyAutoLens#557 grows LATENT_FUNCTIONS from 5 keys to 8 by adding three raw-flux latents. The existing latent_variables_smoke.py asserts that EXPECTED_KEYS exactly matches LATENT_FUNCTIONS.keys(), so without this update the smoke would fail on a clean fit. This PR extends the smoke to cover all 8 keys and silences a cross-library "unknown latent" warning in the workspace config.

Scripts Changed

  • config/latent.yaml — Add the three new raw-flux keys explicitly (total_lens_flux, total_lensed_source_flux, total_source_flux, all true). Add total_galaxy_0_flux: false to silence the autogalaxy library default that autoconf merges into autolens's conf node.
  • scripts/latent/latent_variables_smoke.py — EXPECTED_KEYS extended from 5 to 8 entries. Docstring updated to describe the new "raw / µJy / dimensionless" registry grouping. No other changes — the assertion logic and finite-value checks already cover the new keys.

Upstream PR

Test Plan

  • PYAUTO_TEST_MODE=2 PYAUTO_SMALL_DATASETS=1 PYAUTO_DISABLE_JAX=1 PYAUTO_FAST_PLOTS=1 python scripts/latent/latent_variables_smoke.py — passes 8/8 latents finite, zero "unknown latent" warnings.

Refs PyAutoLabs/PyAutoLens#556

🤖 Generated with Claude Code

PyAutoLabs/PyAutoLens#557 grows LATENT_FUNCTIONS from 5 keys to 8 (adds
three raw-flux latents). Without this update the smoke test's exact-set
assertion against LATENT_FUNCTIONS.keys() fails on a clean fit.

  - config/latent.yaml — enable all 6 flux latents (3 raw + 3 muJy)
    plus magnification and effective_einstein_radius; add explicit
    total_galaxy_0_flux: false to silence the autogalaxy cross-library
    warning that would otherwise fire on every fit
  - scripts/latent/latent_variables_smoke.py — EXPECTED_KEYS extended
    to all 8 registered library latents; docstring updated to describe
    the new grouping

Refs PyAutoLabs/PyAutoLens#556
@Jammy2211 Jammy2211 added the pending-release PR queued for the next release build label May 28, 2026
@Jammy2211
Jammy2211 merged commit 7debb7c into main May 28, 2026
0 of 4 checks passed
@Jammy2211
Jammy2211 deleted the feature/flux-latents-raw branch May 28, 2026 13:25
@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