Skip to content

docs: raw-flux latent guide + workspace config updates - #108

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 PyAutoGalaxy. Wires the new raw-flux latent (total_galaxy_0_flux) into the workspace config and guide scripts, and reframes the latent docs around the new "raw default-on / µJy opt-in" pattern.

Scripts Changed

  • config/latent.yaml — Add total_galaxy_0_flux: true explicitly alongside the existing total_galaxy_0_flux_mujy: true; reflow the comment block to explain the raw / µJy split.
  • scripts/guides/units/flux.py — New "Latent Variables: Total Flux Directly from the Fit" section. Documents that latent/samples.csv now ships a raw-flux column out of the box, demos converting raw flux → µJy in post via ab_mag_via_flux_from / flux_mujy_via_ab_mag_from, and closes with a pointer to enabling _mujy via workspace config + magzero= on the analysis.
  • scripts/guides/results/latent_variables.py — Catalogue section rewritten from a single-latent entry to the raw / µJy couplet, with clear "no instrument inputs needed" framing for the raw key. Updated the "Toggling Latents" section to describe the new "raw default-on, µJy default-off" library split. Updated the model-fit magzero paragraph to describe the NaN+warning soft-fail behaviour rather than the old ValueError. Updated the loading-results section to print both latents.

Upstream PR

Test Plan

  • Smoke tests pass for all affected workspaces
  • python -m py_compile on both edited scripts — pass

Refs PyAutoLabs/PyAutoLens#556

🤖 Generated with Claude Code

Companion to PyAutoLabs/PyAutoGalaxy#463. Wires the new raw-flux latent
(total_galaxy_0_flux) into:
  - config/latent.yaml — explicit enablement alongside the existing
    total_galaxy_0_flux_mujy override; keeps both 'true'
  - 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 — catalogue section
    rewritten as a raw / muJy couplet; 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 442a6dd 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