Skip to content

fix(config): re-sync priors, plots_search and general.yaml with the packaged PyAutoGalaxy config - #244

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/config-priors-drift
Sep 16, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/config-priors-drift

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Summary

Workspace half of PyAutoLabs/PyAutoGalaxy#618. autonerves.JSONPriorConfig matches {module}.{Class}.{param} by suffix against a yaml's path under config/priors/, so a file at the wrong path, a typo'd key or a param the class does not take is silently dead. The same drift rows fixed in the packaged PyAutoGalaxy config existed verbatim in this workspace's config/priors/; this PR applies the same edits and removes the readerless fits.flip_for_ds9 key from general.yaml. Its plots_search.yaml already had the nest/mcmc/mle headers but a stale mle: block (corner_cornerpy) that autofit's MLE reader never looks up, so it is replaced with the packaged PyAutoFit file like the other workspaces.

Scripts Changed

No scripts. Configuration only:

  • config/priors/light/operated/sersic.yaml — key ersic → Sersic (operated Sersic priors were dead; ellipticity prior becomes TruncatedGaussian as the file always intended)
  • config/priors/mass/dark/nfw_truncated_mcr.yaml → nfw_truncated_mcr_scatter.yaml — NFWTruncatedMCRScatterLudlowSph block moved verbatim to the file matching its module (model construction previously raised ConfigException)
  • config/priors/light/linear/chameleon.yaml, config/priors/light/linear/eff.yaml — deleted (no linear Chameleon / ElsonFreeFall class)
  • config/priors/point_sources.yaml — PointSourceChi block deleted (class removed)
  • config/priors/mass/stellar/sersic_core.yaml — dead SersicCoreSph.mass_to_light_ratio key deleted
  • config/priors/light/linear_operated/gaussian.yaml — dead Gaussian.intensity key deleted
  • config/priors/mesh/README.md — Voronoi removed from the prose
  • config/visualize/plots_search.yaml — replaced with the packaged PyAutoFit file (nest: / mcmc: / mle:)
  • config/general.yaml — fits.flip_for_ds9 removed (no reader in any library or autonerves)

Upstream PR

PyAutoLabs/PyAutoGalaxy#619

Test Plan

  • From the workspace cwd, af.Model(ag.mp.NFWTruncatedMCRScatterLudlowSph).instance_from_prior_medians() succeeds and af.Model(ag.lp_operated.Sersic) builds with 7 priors
  • grep -rn "PointSourceChi\|flip_for_ds9\|Voronoi\|^ersic" config/ is empty
  • Every edited config/priors/ file byte-matches the packaged PyAutoGalaxy file (no residuals)
  • Smoke tests pass
  • Merge only after the upstream library PR is merged (library-first gate)

Generated by the PyAutoLabs agent workflow.

🤖 Generated with Claude Code

…ackaged PyAutoGalaxy config

Mirror PyAutoGalaxy PR #619 (PyAutoGalaxy#618): fix the dead
prior yaml rows that `JSONPriorConfig`'s suffix matcher silently ignores
(`ersic` typo, `NFWTruncatedMCRScatterLudlowSph` under the wrong file,
orphan linear chameleon/eff files, removed `PointSourceChi`, dead
`SersicCoreSph.mass_to_light_ratio` and linear-operated
`Gaussian.intensity` keys, Voronoi in the mesh README).

Also replace `config/visualize/plots_search.yaml` with the packaged
PyAutoFit `nest`/`mcmc`/`mle` form (the `mle:` block here carried a
`corner_cornerpy` key the MLE reader never looks up) and drop
`fits.flip_for_ds9` from `general.yaml` (no reader in any library).

Refs PyAutoLabs/PyAutoGalaxy#618

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@Jammy2211 Jammy2211 added the pending-release PR queued for the next release build label Sep 16, 2026
@Jammy2211
Jammy2211 merged commit 6b52f6d into main Sep 16, 2026
7 checks passed
@Jammy2211
Jammy2211 deleted the feature/config-priors-drift branch September 16, 2026 09:35
@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