Repository navigation
fix(config): re-sync priors, plots_search and general.yaml with the packaged PyAutoGalaxy config - #319
Merged
Conversation
…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 delete the orphan `mesh/voronoi.yaml` (the Voronoi mesh was removed from PyAutoArray) and the empty `DelaunayNN` key in `mesh/delaunay.yaml` (its module is `delaunay_nn`, so the key never matched). 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Workspace half of PyAutoLabs/PyAutoGalaxy#618.
autonerves.JSONPriorConfigmatches{module}.{Class}.{param}by suffix against a yaml's path underconfig/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'sconfig/priors/; this PR applies the same edits (as edits, not a blind copy). It also replaces the stale per-searchplots_search.yamlwith the packagednest/mcmc/mleform autofit actually reads, and removes the readerlessfits.flip_for_ds9key fromgeneral.yaml.Scripts Changed
No scripts. Configuration only:
config/priors/light/operated/sersic.yaml— keyersic→Sersic(operated Sersic priors were dead; ellipticity prior becomesTruncatedGaussianas the file always intended)config/priors/mass/dark/nfw_truncated_mcr.yaml→nfw_truncated_mcr_scatter.yaml—NFWTruncatedMCRScatterLudlowSphblock moved verbatim to the file matching its module (model construction previously raisedConfigException)config/priors/light/linear/chameleon.yaml,config/priors/light/linear/eff.yaml— deleted (no linearChameleon/ElsonFreeFallclass)config/priors/point_sources.yaml—PointSourceChiblock deleted (class removed)config/priors/mass/stellar/sersic_core.yaml— deadSersicCoreSph.mass_to_light_ratiokey deleted; a duplicatedSersicCore.radius_breakblock (same key and value twice in one mapping, YAML keeps the last) also removedconfig/priors/light/linear_operated/gaussian.yaml— deadGaussian.intensitykey deletedconfig/priors/mesh/README.md— Voronoi removed from the proseconfig/priors/mesh/voronoi.yaml— deleted (the Voronoi mesh was removed from PyAutoArray; this was the user's original request)config/priors/mesh/delaunay.yaml— emptyDelaunayNNkey deleted (module isdelaunay_nn, key never matched)config/visualize/plots_search.yaml— replaced with the packaged PyAutoFit file (nest:/mcmc:/mle:)config/general.yaml—fits.flip_for_ds9removed (no reader in any library or autonerves)Upstream PR
PyAutoLabs/PyAutoGalaxy#619
Test Plan
af.Model(al.mp.NFWTruncatedMCRScatterLudlowSph).instance_from_prior_medians()succeeds andaf.Model(al.lp_operated.Sersic)builds with 7 priorsgrep -rn "PointSourceChi\|flip_for_ds9\|Voronoi\|^ersic\|DelaunayNN" config/is emptyconfig/priors/file byte-matches the packaged PyAutoGalaxy file (no residuals)Generated by the PyAutoLabs agent workflow.
🤖 Generated with Claude Code