Skip to content

docs: raw-flux latent guides + workspace config updates - #214

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

Companion workspace PR for the soft-fail / raw-flux latent change in PyAutoLens. Wires the three new raw-flux latents (total_lens_flux, total_lensed_source_flux, total_source_flux) into the workspace config and guide scripts, and reframes the latent docs around the new "raw default-on / µJy opt-in" pattern.

Also includes a one-line silencer for the autogalaxy library default that bleeds into autolens's conf scope (total_galaxy_0_flux: false) — without this every autolens fit logs an "unknown latent" warning per evaluation.

Scripts Changed

  • config/latent.yaml — Add total_lens_flux, total_lensed_source_flux, total_source_flux (all true) to the workspace overrides; reflow the comment block to explain the raw / µJy / dimensionless grouping; add total_galaxy_0_flux: false as an explicit cross-library silencer (the autogalaxy library default leaks into autolens's conf node).
  • scripts/guides/units/flux.py — New "Latent Variables: Total Flux Directly from the Fit" section. Documents that latent/samples.csv now ships raw-flux columns out of the box, explains the units (same as dataset.data.array), and demos converting raw flux → µJy in post via ab_mag_via_flux_from / flux_mujy_via_ab_mag_from. Closes with a pointer to enabling the _mujy latents via workspace config + magzero= on the analysis (Euclid pipeline pattern).
  • scripts/guides/results/latent_variables.py — Catalogue section restructured from 5 entries to 8, grouped into raw-flux / µJy / dimensionless. Updated the "All five default to false" claim to reflect the new "raw default-on, µJy default-off" split. Updated the "Toggling Latents" section and the model-fit magzero paragraph to describe the NaN+warning soft-fail behaviour rather than the old ValueError. Updated the "extra column on top of five library defaults" line to 8.

Upstream PR

Test Plan

  • Smoke tests pass for all affected workspaces
  • python -m py_compile on both edited scripts — pass
  • Cross-library "unknown latent" warning verified absent in the smoke test re-run after the silencer was added

Refs PyAutoLabs/PyAutoLens#556

🤖 Generated with Claude Code

Companion to PyAutoLabs/PyAutoLens#557. Wires the three new raw-flux
latents (total_lens_flux, total_lensed_source_flux, total_source_flux)
into:
  - config/latent.yaml — explicit enablement; one-line silencer for the
    autogalaxy cross-library default (total_galaxy_0_flux: false)
  - scripts/guides/units/flux.py — new section demonstrating reading
    raw flux directly from latent.csv and converting to muJy in post
  - scripts/guides/results/latent_variables.py — updated catalogue
    section (now 8 latents grouped by raw / muJy / dimensionless) plus
    soft-fail vs raise reframing

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 bc49b0b into main May 28, 2026
6 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