Skip to content

refactor(latent): LatentLens class + declare Analysis.Latent (Phase 2) - #568

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/latent-class-phase2
Jun 9, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/latent-class-phase2

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Summary

Phase 2 of the latent redesign (first-class Latent class). Depends on PyAutoFit #1315 (Phase 1, af.Latent) — do NOT merge into a release; CI fails until #1315 lands. See PyAutoPrompt/autofit/latent_class_redesign.md.

LatentLens(af.Latent) (static keys/variables, BATCH_MODE=jit) owns the registry dispatch; AnalysisImaging.Latent = LatentLens; legacy LATENT_KEYS/compute_latent_variables removed. Exports al.Latent + al.LatentLens. Tests migrated.

Test Plan

  • test_autolens/analysis (52 passed) incl. test_latent (24)
  • latent_variables_smoke (8 latents) + latent_nan_robustness guards — pass

🤖 Generated with Claude Code

…nt (Phase 2)

Migrates lensing latents to the Latent class (PyAutoFit Phase 1, PR #1315).
`LatentLens(af.Latent)` (static keys/variables, BATCH_MODE="jit") holds the
registry dispatch; `AnalysisImaging` declares `Latent = LatentLens` and the
legacy `LATENT_KEYS` property + `compute_latent_variables` override are removed.
Exports `al.Latent` (base) and `al.LatentLens`. Tests migrated to the class path.

Depends on PyAutoFit #1315 (af.Latent) — CI fails until that merges.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@Jammy2211 Jammy2211 added the pending-release PR queued for the next release build label Jun 9, 2026
@Jammy2211
Jammy2211 merged commit ae4a27a into main Jun 9, 2026
2 of 6 checks passed
@Jammy2211
Jammy2211 deleted the feature/latent-class-phase2 branch June 9, 2026 09:20
@Jammy2211 Jammy2211 removed the pending-release PR queued for the next release build label Sep 4, 2026
Jammy2211 added a commit that referenced this pull request Sep 24, 2026
…est-nojax collection, #568)

The module-level @pytest.mark.parametrize decorators read these plain-data
constants at collection time; defining them inside the jax-present branch
raised NameError on the NumPy-only CI leg. Verified: no-jax collection skips
cleanly, with-jax collected count unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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