Skip to content

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

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 repo's config/priors/; this PR applies the same edits (as edits, not a blind copy). It also replaces the stale per-search plots_search.yaml with the packaged nest/mcmc/mle form autofit actually reads, and removes the readerless fits.flip_for_ds9 key from general.yaml.

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; a duplicated SersicCore.radius_break block (same key and value twice in one mapping, YAML keeps the last) also removed
  • 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 repo cwd, af.Model(al.mp.NFWTruncatedMCRScatterLudlowSph).instance_from_prior_medians() succeeds and af.Model(al.lp_operated.Sersic) builds with 7 priors
  • grep -rn "PointSourceChi\|flip_for_ds9\|Voronoi\|^ersic\|DelaunayNN" config/ is empty
  • Every edited config/priors/ file byte-matches the packaged PyAutoGalaxy file (the workspace-deliberate Delaunay.areas_factor in HowToLens' mesh/delaunay.yaml is untouched)
  • 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, a duplicated `SersicCore.radius_break` block,
Voronoi in the mesh README).

Also replace `config/visualize/plots_search.yaml` with the packaged
PyAutoFit `nest`/`mcmc`/`mle` form (autofit reads only those family
sections; the per-search `dynesty:`/`emcee:`/`nautilus:`/`zeus:` blocks
were never read) 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 0d54116 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