Skip to content

config: add prior defaults for ExternalPotential#423

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/external-potential-priors-and-jit
May 18, 2026
Merged

config: add prior defaults for ExternalPotential#423
Jammy2211 merged 1 commit into
mainfrom
feature/external-potential-priors-and-jit

Conversation

@Jammy2211
Copy link
Copy Markdown
Collaborator

Summary

Follow-up to #422. Adds the missing library-default prior YAML for ag.mp.ExternalPotential so af.Model(ag.mp.ExternalPotential) resolves without a config error.

  • centre_0, centre_1: Gaussian(0, 0.1) — matches Isothermal and MassSheet conventions.
  • gamma_1, gamma_2, tau_1, tau_2, delta_1, delta_2: Uniform(-0.3, 0.3) with Absolute width_modifier 0.05 — mirrors ExternalShear's gamma priors.

Verified locally: af.Model(ag.mp.ExternalPotential) builds an 8-parameter (centre + 6 components — ell_comps are fixed (0,0) so excluded from priors) model with all medians at 0 as expected.

API Changes

None — config-only addition. See full details below.

Test Plan

  • python -c "import autofit as af, autogalaxy as ag; af.Model(ag.mp.ExternalPotential).instance_from_prior_medians()" returns the class with all priors resolved.
Full API Changes (for automation & release notes)

Added

  • autogalaxy/config/priors/mass/sheets/external_potential.yaml — library default priors for ExternalPotential.

Changed

None.

Removed

None.

Migration

None — workspace clones that want different priors can shadow this file with their own config/priors/mass/sheets/external_potential.yaml.

🤖 Generated with Claude Code

Adds the missing library-default prior YAML for `ag.mp.ExternalPotential`
(added in #422) so `af.Model(ag.mp.ExternalPotential)` resolves without a
config error. centre uses Gaussian(0, 0.1) matching Isothermal/MassSheet;
the six gamma/tau/delta components use Uniform(-0.3, 0.3) with Absolute
width_modifier 0.05 (mirrors ExternalShear's gamma priors).

Follow-up to #419 / #422.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@Jammy2211 Jammy2211 added the pending-release PR queued for the next release build label May 18, 2026
@Jammy2211 Jammy2211 merged commit 4712cd7 into main May 18, 2026
6 checks passed
@Jammy2211 Jammy2211 deleted the feature/external-potential-priors-and-jit branch May 18, 2026 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pending-release PR queued for the next release build

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant