Repository navigation
docs: every external field → fields= (al.MassField), full workspace sweep [draft until release] - #560
Merged
Merged
Conversation
… interferometer, point_source, multi_dataset, guides, multi_galaxy, group, LOS halos Phase 3 of the MassField epic, re-scoped 2026-09-17 on the human's ruling that the user-facing API is `fields=` everywhere. Galaxy-attached ExternalShear / MassSheet / ExternalPotential become an al.MassField in the model's and the tracer's own `fields=` slot; SLaM chains `fields=<result>.model|instance.fields`; results read `fields.field.shear`. Numerically identical (parity asserted); datasets untouched; new result identifiers for migrated examples. Needs the PyAutoGalaxy #621 + PyAutoLens #742 release — draft PR, pending-release. Refs #559 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This was referenced Sep 18, 2026
Jammy2211
marked this pull request as ready for review
September 18, 2026 07:11
This was referenced Sep 18, 2026
Closed
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
DO NOT MERGE until release — this PR needs PyAutoGalaxy #621 (
ag.MassField) and PyAutoLens #742 (Tracer(fields=), analysisfieldsslot,model_util.mass_field_from, LOSfields_from, COOLEST 1:1) on PyPI. The workspace follows the released stack, notmain; CI here is green only because the smoke workflow clones the librarymainbranches. Opened as a draft for that reason;gh pr ready+/prmafter the release.Phase 3 of the MassField epic (PyAutoMind
draft/feature/autogalaxy/mass_field_epic.md), re-scoped on the human's 2026-09-17 ruling: the user-facing API from here on is fields in the model as a separate thing. EveryExternalShear/MassSheet/ExternalPotentialthat was attached to aGalaxyinautolens_workspacenow lives in anal.MassFieldin its ownfields=slot of the model (fields=af.Collection(field=af.Model(al.MassField, redshift=…, shear=…))) and of the tracer (al.Tracer(galaxies=[…], fields=[field])). SLaM stages chainfields=<result>.model|instance.fields; results are read asresult.instance.fields.field.shear; aggregator paths arefields.field.shear.<param>. Numerically identical (deflections sum over planes — parity asserted, see Test Plan); committed datasets untouched.tracer.galaxiesnever holds a field, so positional galaxy access is unaffected (themulti_galaxy/shear_galaxygalaxy leaving the list is the one place indices moved; re-checked). A migrated example composes a different model and therefore gets a new result identifier; oldoutput/folders are not resumed. The library keepsal.Galaxy(shear=…)working and unwarned for users' own scripts.Heart readiness at ship: RED — "install verification FAILED (testpypi; checks F)"; "release validation FAILED (stage integrate)" (+ YELLOW manifest drift). Neither concerns this repo; the human acknowledged these exact reasons on 2026-09-18 for commit/push/draft PR-open only. Merge stays human and release-gated.
Absorbs the former phase 4 (
group/).imaging/modeling.pycarries the reference__External Shear__prose;multi_galaxy/,group/,interferometer/,multi_dataset/carry compact per-regime versions. LOS-halo simulators useLOSSampler.galaxies_and_fields_from(). Three prose sentences intentionally still mentional.Galaxy(shear=...)to say the library keeps accepting it. Pre-existing__Model__parameter-count drift found on the way is filed separately (PyAutoMinddraft/docs/workspaces/model_bullet_parameter_count_drift.md), not fixed here.Scripts Changed
scripts/group/features/advanced/double_source_plane_lens/slam.py— SLaM stage chainsfields=<result>.model|instance.fieldsinstead of a galaxyshear=kwargscripts/group/features/advanced/mass_stellar_dark/chaining.py— chained stages carryfields=<result>.model|instance.fieldsscripts/group/features/advanced/mass_stellar_dark/fit.py— instance tracer built withfields=[field]scripts/group/features/advanced/mass_stellar_dark/likelihood_function.py— hand-summed deflections read the shear off theMassFieldscripts/group/features/advanced/mass_stellar_dark/modeling.py— galaxy-attached shear →fields=af.Collection(field=af.Model(al.MassField, ...)); prose names theMassFieldscripts/group/features/advanced/mass_stellar_dark/simulator.py—al.MassField(redshift, shear=...)passed asTracer(fields=[field])(dataset bit-identical)scripts/group/features/advanced/mass_stellar_dark/slam.py— SLaM stage chainsfields=<result>.model|instance.fieldsinstead of a galaxyshear=kwargscripts/group/features/advanced/operated_light_profile/modeling.py— galaxy-attached shear →fields=af.Collection(field=af.Model(al.MassField, ...)); prose names theMassFieldscripts/group/features/advanced/shapelets/modeling.py— galaxy-attached shear →fields=af.Collection(field=af.Model(al.MassField, ...)); prose names theMassFieldscripts/group/features/advanced/sky_background/modeling.py— galaxy-attached shear →fields=af.Collection(field=af.Model(al.MassField, ...)); prose names theMassFieldscripts/group/features/advanced/subhalo/detect/start_here.py— shear composed as anal.MassFieldinfields=; prose rewrittenscripts/group/features/linear_light_profiles/modeling.py— galaxy-attached shear →fields=af.Collection(field=af.Model(al.MassField, ...)); prose names theMassFieldscripts/group/features/linear_light_profiles/slam.py— SLaM stage chainsfields=<result>.model|instance.fieldsinstead of a galaxyshear=kwargscripts/group/features/multi_gaussian_expansion/modeling.py— galaxy-attached shear →fields=af.Collection(field=af.Model(al.MassField, ...)); prose names theMassFieldscripts/group/features/multi_gaussian_expansion/slam.py— SLaM stage chainsfields=<result>.model|instance.fieldsinstead of a galaxyshear=kwargscripts/group/features/no_lens_light/modeling.py— galaxy-attached shear →fields=af.Collection(field=af.Model(al.MassField, ...)); prose names theMassFieldscripts/group/features/no_lens_light/slam.py— SLaM stage chainsfields=<result>.model|instance.fieldsinstead of a galaxyshear=kwargscripts/group/features/pixelization/adaptive.py— galaxy-attached shear →fields=af.Collection(field=af.Model(al.MassField, ...)); prose names theMassFieldscripts/group/features/pixelization/cpu_fast_modeling.py— galaxy-attached shear →fields=af.Collection(field=af.Model(al.MassField, ...)); prose names theMassFieldscripts/group/features/pixelization/delaunay.py— galaxy-attached shear →fields=af.Collection(field=af.Model(al.MassField, ...)); prose names theMassFieldscripts/group/features/pixelization/modeling.py— galaxy-attached shear →fields=af.Collection(field=af.Model(al.MassField, ...)); prose names theMassFieldscripts/group/features/pixelization/slam.py— SLaM stage chainsfields=<result>.model|instance.fieldsinstead of a galaxyshear=kwargscripts/group/features/scaling_relation/modeling.py— galaxy-attached shear →fields=af.Collection(field=af.Model(al.MassField, ...)); prose names theMassFieldscripts/group/modeling.py—if i == 0 else Noneloop idiom → one field infields=;__External Shear__for the group readerscripts/group/slam.py— SLaM stage chainsfields=<result>.model|instance.fieldsinstead of a galaxyshear=kwargscripts/group/start_here.py— shear composed as anal.MassFieldinfields=; prose rewrittenscripts/guides/advanced/over_sampling_chaining.py— chained stages carryfields=<result>.model|instance.fieldsscripts/guides/coolest_interop.py— exportsTracer(fields=[...]);from_coolestreturns the shear intracer.fields(profiles positionally namedmass_0); new__Mass Fields__sectionscripts/guides/galaxies.py— galaxy-attached shear →fields=af.Collection(field=af.Model(al.MassField, ...)); prose names theMassFieldscripts/guides/hpc/example_cpu_and_gpu.py— galaxy-attached shear →fields=af.Collection(field=af.Model(al.MassField, ...)); prose names theMassFieldscripts/guides/misc/witt_wynne.py— galaxy-attached shear →fields=af.Collection(field=af.Model(al.MassField, ...)); prose names theMassFieldscripts/guides/modeling/bug_fix.py— galaxy-attached shear →fields=af.Collection(field=af.Model(al.MassField, ...)); prose names theMassFieldscripts/guides/modeling/chaining.py— chained stages carryfields=<result>.model|instance.fieldsscripts/guides/modeling/cookbook.py— galaxy-attached shear →fields=af.Collection(field=af.Model(al.MassField, ...)); prose names theMassFieldscripts/guides/modeling/searches.py— galaxy-attached shear →fields=af.Collection(field=af.Model(al.MassField, ...)); prose names theMassFieldscripts/guides/modeling/slam_start_here.py— SLaM stage chainsfields=<result>.model|instance.fieldsinstead of a galaxyshear=kwargscripts/guides/plot/plotters.py— galaxy-attached shear →fields=af.Collection(field=af.Model(al.MassField, ...)); prose names theMassFieldscripts/guides/plot/searches.py— galaxy-attached shear →fields=af.Collection(field=af.Model(al.MassField, ...)); prose names theMassFieldscripts/guides/profiles/mass.py— new__The MassField Container__subsection:al.MassField, tracer/modelfields=,al.model_util.mass_field_from(..., potential=True)centre tiescripts/guides/results/_quick_fit.py— instance tracer built withfields=[field]scripts/guides/results/aggregator/galaxies_fits.py— instance tracer built withfields=[field]scripts/guides/results/aggregator/samples.py— galaxy-attached shear →fields=af.Collection(field=af.Model(al.MassField, ...)); prose names theMassFieldscripts/guides/results/start_here.py— shear composed as anal.MassFieldinfields=; prose rewrittenscripts/guides/results/workflow/csv_make.py— galaxy-attached shear →fields=af.Collection(field=af.Model(al.MassField, ...)); prose names theMassFieldscripts/imaging/features/advanced/double_source_plane_lens/slam.py— SLaM stage chainsfields=<result>.model|instance.fieldsinstead of a galaxyshear=kwargscripts/imaging/features/advanced/los_halos/simulator.py—LOSSampler.galaxies_and_fields_from(); sheets are per-planeMassFields read offtracer.fieldsscripts/imaging/features/advanced/los_halos/simulator_jax.py— sheets arrive asMassFields viagalaxies_and_fields_from(); JAXlens_mass_fnsumsGalaxy+MassFielddeflectionsscripts/imaging/features/advanced/mass_stellar_dark/fit.py— instance tracer built withfields=[field]scripts/imaging/features/advanced/mass_stellar_dark/likelihood_function.py— hand-summed deflections read the shear off theMassFieldscripts/imaging/features/advanced/mass_stellar_dark/modeling.py— galaxy-attached shear →fields=af.Collection(field=af.Model(al.MassField, ...)); prose names theMassFieldscripts/imaging/features/advanced/mass_stellar_dark/simulator.py—al.MassField(redshift, shear=...)passed asTracer(fields=[field])(dataset bit-identical)scripts/imaging/features/advanced/mass_stellar_dark/slam.py— SLaM stage chainsfields=<result>.model|instance.fieldsinstead of a galaxyshear=kwargscripts/imaging/features/advanced/operated_light_profile/modeling.py— galaxy-attached shear →fields=af.Collection(field=af.Model(al.MassField, ...)); prose names theMassFieldscripts/imaging/features/advanced/operated_light_profile/simulator.py—al.MassField(redshift, shear=...)passed asTracer(fields=[field])(dataset bit-identical)scripts/imaging/features/advanced/shapelets/fit.py— instance tracer built withfields=[field]scripts/imaging/features/advanced/shapelets/modeling.py— galaxy-attached shear →fields=af.Collection(field=af.Model(al.MassField, ...)); prose names theMassFieldscripts/imaging/features/advanced/sky_background/fit.py— instance tracer built withfields=[field]scripts/imaging/features/advanced/sky_background/modeling.py— galaxy-attached shear →fields=af.Collection(field=af.Model(al.MassField, ...)); prose names theMassFieldscripts/imaging/features/advanced/sky_background/simulator.py—al.MassField(redshift, shear=...)passed asTracer(fields=[field])(dataset bit-identical)scripts/imaging/features/advanced/subhalo/detect/start_here.py— shear composed as anal.MassFieldinfields=; prose rewrittenscripts/imaging/features/advanced/subhalo/sensitivity/slam_source_parametric.py— SLaM stage chainsfields=<result>.model|instance.fieldsinstead of a galaxyshear=kwargscripts/imaging/features/advanced/subhalo/sensitivity/slam_source_pixelized.py— SLaM stage chainsfields=<result>.model|instance.fieldsinstead of a galaxyshear=kwargscripts/imaging/features/advanced/subhalo/simulator.py—al.MassField(redshift, shear=...)passed asTracer(fields=[field])(dataset bit-identical)scripts/imaging/features/extra_galaxies/slam.py— SLaM stage chainsfields=<result>.model|instance.fieldsinstead of a galaxyshear=kwargscripts/imaging/features/linear_light_profiles/fit.py— instance tracer built withfields=[field]scripts/imaging/features/linear_light_profiles/likelihood_function.py— hand-summed deflections read the shear off theMassFieldscripts/imaging/features/linear_light_profiles/modeling.py— galaxy-attached shear →fields=af.Collection(field=af.Model(al.MassField, ...)); prose names theMassFieldscripts/imaging/features/linear_light_profiles/slam.py— SLaM stage chainsfields=<result>.model|instance.fieldsinstead of a galaxyshear=kwargscripts/imaging/features/multi_gaussian_expansion/fit.py— instance tracer built withfields=[field]scripts/imaging/features/multi_gaussian_expansion/likelihood_function.py— hand-summed deflections read the shear off theMassFieldscripts/imaging/features/multi_gaussian_expansion/modeling.py— galaxy-attached shear →fields=af.Collection(field=af.Model(al.MassField, ...)); prose names theMassFieldscripts/imaging/features/multi_gaussian_expansion/simulator.py—al.MassField(redshift, shear=...)passed asTracer(fields=[field])(dataset bit-identical)scripts/imaging/features/multi_gaussian_expansion/slam.py— SLaM stage chainsfields=<result>.model|instance.fieldsinstead of a galaxyshear=kwargscripts/imaging/features/multi_gaussian_expansion/source_science.py— galaxy-attached shear →fields=af.Collection(field=af.Model(al.MassField, ...)); prose names theMassFieldscripts/imaging/features/no_lens_light/modeling.py— galaxy-attached shear →fields=af.Collection(field=af.Model(al.MassField, ...)); prose names theMassFieldscripts/imaging/features/no_lens_light/simulator.py—al.MassField(redshift, shear=...)passed asTracer(fields=[field])(dataset bit-identical)scripts/imaging/features/no_lens_light/slam.py— SLaM stage chainsfields=<result>.model|instance.fieldsinstead of a galaxyshear=kwargscripts/imaging/features/pixelization/adaptive.py— galaxy-attached shear →fields=af.Collection(field=af.Model(al.MassField, ...)); prose names theMassFieldscripts/imaging/features/pixelization/cpu_fast_modeling.py— galaxy-attached shear →fields=af.Collection(field=af.Model(al.MassField, ...)); prose names theMassFieldscripts/imaging/features/pixelization/delaunay.py— galaxy-attached shear →fields=af.Collection(field=af.Model(al.MassField, ...)); prose names theMassFieldscripts/imaging/features/pixelization/fit.py— instance tracer built withfields=[field]scripts/imaging/features/pixelization/likelihood_function.py— hand-summed deflections read the shear off theMassFieldscripts/imaging/features/pixelization/modeling.py— galaxy-attached shear →fields=af.Collection(field=af.Model(al.MassField, ...)); prose names theMassFieldscripts/imaging/features/pixelization/plot.py— galaxy-attached shear →fields=af.Collection(field=af.Model(al.MassField, ...)); prose names theMassFieldscripts/imaging/features/pixelization/slam.py— SLaM stage chainsfields=<result>.model|instance.fieldsinstead of a galaxyshear=kwargscripts/imaging/features/pixelization/source_science.py— galaxy-attached shear →fields=af.Collection(field=af.Model(al.MassField, ...)); prose names theMassFieldscripts/imaging/features/scaling_relation/modeling.py— galaxy-attached shear →fields=af.Collection(field=af.Model(al.MassField, ...)); prose names theMassFieldscripts/imaging/features/scaling_relation/slam.py— SLaM stage chainsfields=<result>.model|instance.fieldsinstead of a galaxyshear=kwargscripts/imaging/features/simulator_manual_signal_to_noise_ratio.py—al.MassField(redshift, shear=...)passed asTracer(fields=[field])(dataset bit-identical)scripts/imaging/fit.py— instance tracer built withfields=[field]scripts/imaging/likelihood_function.py— hand-summed deflections read the shear off theMassFieldscripts/imaging/modeling.py— reference__External Shear__prose; canonical single-galaxyfields=af.Collection(field=af.Model(al.MassField, ...))compositionscripts/imaging/plot.py— galaxy-attached shear →fields=af.Collection(field=af.Model(al.MassField, ...)); prose names theMassFieldscripts/imaging/simulator.py—al.MassField(redshift, shear=...)passed asTracer(fields=[field])(dataset bit-identical)scripts/imaging/simulator_sample.py—al.MassField(redshift, shear=...)passed asTracer(fields=[field])(dataset bit-identical)scripts/imaging/source_science.py— galaxy-attached shear →fields=af.Collection(field=af.Model(al.MassField, ...)); prose names theMassFieldscripts/imaging/start_here.py— shear composed as anal.MassFieldinfields=; prose rewrittenscripts/interferometer/features/advanced/operated_light_profile/modeling.py— galaxy-attached shear →fields=af.Collection(field=af.Model(al.MassField, ...)); prose names theMassFieldscripts/interferometer/features/advanced/operated_light_profile/simulator.py—al.MassField(redshift, shear=...)passed asTracer(fields=[field])(dataset bit-identical)scripts/interferometer/features/advanced/shapelets/fit.py— instance tracer built withfields=[field]scripts/interferometer/features/advanced/shapelets/modeling.py— galaxy-attached shear →fields=af.Collection(field=af.Model(al.MassField, ...)); prose names theMassFieldscripts/interferometer/features/advanced/subhalo/detect/start_here.py— shear composed as anal.MassFieldinfields=; prose rewrittenscripts/interferometer/features/advanced/subhalo/simulator.py—al.MassField(redshift, shear=...)passed asTracer(fields=[field])(dataset bit-identical)scripts/interferometer/features/datacube/delaunay.py— galaxy-attached shear →fields=af.Collection(field=af.Model(al.MassField, ...)); prose names theMassFieldscripts/interferometer/features/datacube/likelihood_function.py— hand-summed deflections read the shear off theMassFieldscripts/interferometer/features/datacube/modeling.py— galaxy-attached shear →fields=af.Collection(field=af.Model(al.MassField, ...)); prose names theMassFieldscripts/interferometer/features/datacube/modeling_parametric.py— galaxy-attached shear →fields=af.Collection(field=af.Model(al.MassField, ...)); prose names theMassFieldscripts/interferometer/features/datacube/simulator.py—al.MassField(redshift, shear=...)passed asTracer(fields=[field])(dataset bit-identical)scripts/interferometer/features/datacube/start_here.py— shear composed as anal.MassFieldinfields=; prose rewrittenscripts/interferometer/features/extra_galaxies/slam.py— SLaM stage chainsfields=<result>.model|instance.fieldsinstead of a galaxyshear=kwargscripts/interferometer/features/linear_light_profiles/fit.py— instance tracer built withfields=[field]scripts/interferometer/features/linear_light_profiles/likelihood_function.py— hand-summed deflections read the shear off theMassFieldscripts/interferometer/features/linear_light_profiles/modeling.py— galaxy-attached shear →fields=af.Collection(field=af.Model(al.MassField, ...)); prose names theMassFieldscripts/interferometer/features/linear_light_profiles/slam.py— SLaM stage chainsfields=<result>.model|instance.fieldsinstead of a galaxyshear=kwargscripts/interferometer/features/multi_gaussian_expansion/fit.py— instance tracer built withfields=[field]scripts/interferometer/features/multi_gaussian_expansion/likelihood_function.py— hand-summed deflections read the shear off theMassFieldscripts/interferometer/features/multi_gaussian_expansion/modeling.py— galaxy-attached shear →fields=af.Collection(field=af.Model(al.MassField, ...)); prose names theMassFieldscripts/interferometer/features/multi_gaussian_expansion/slam.py— SLaM stage chainsfields=<result>.model|instance.fieldsinstead of a galaxyshear=kwargscripts/interferometer/features/pixelization/delaunay.py— galaxy-attached shear →fields=af.Collection(field=af.Model(al.MassField, ...)); prose names theMassFieldscripts/interferometer/features/pixelization/fit.py— instance tracer built withfields=[field]scripts/interferometer/features/pixelization/likelihood_function.py— hand-summed deflections read the shear off theMassFieldscripts/interferometer/features/pixelization/modeling.py— galaxy-attached shear →fields=af.Collection(field=af.Model(al.MassField, ...)); prose names theMassFieldscripts/interferometer/features/pixelization/slam.py— SLaM stage chainsfields=<result>.model|instance.fieldsinstead of a galaxyshear=kwargscripts/interferometer/features/pixelization/source_science.py— galaxy-attached shear →fields=af.Collection(field=af.Model(al.MassField, ...)); prose names theMassFieldscripts/interferometer/features/scaling_relation/modeling.py— galaxy-attached shear →fields=af.Collection(field=af.Model(al.MassField, ...)); prose names theMassFieldscripts/interferometer/features/scaling_relation/slam.py— SLaM stage chainsfields=<result>.model|instance.fieldsinstead of a galaxyshear=kwargscripts/interferometer/fit.py— instance tracer built withfields=[field]scripts/interferometer/likelihood_function.py— hand-summed deflections read the shear off theMassFieldscripts/interferometer/modeling.py— galaxy-attached shear →fields=af.Collection(field=af.Model(al.MassField, ...)); prose names theMassFieldscripts/interferometer/plot.py— galaxy-attached shear →fields=af.Collection(field=af.Model(al.MassField, ...)); prose names theMassFieldscripts/interferometer/simulator.py—al.MassField(redshift, shear=...)passed asTracer(fields=[field])(dataset bit-identical)scripts/interferometer/source_science.py— galaxy-attached shear →fields=af.Collection(field=af.Model(al.MassField, ...)); prose names theMassFieldscripts/interferometer/start_here.py— shear composed as anal.MassFieldinfields=; prose rewrittenscripts/multi_dataset/features/dataset_offsets/modeling.py— galaxy-attached shear →fields=af.Collection(field=af.Model(al.MassField, ...)); prose names theMassFieldscripts/multi_dataset/features/dataset_offsets/simulator.py—al.MassField(redshift, shear=...)passed asTracer(fields=[field])(dataset bit-identical)scripts/multi_dataset/features/imaging_and_interferometer/modeling.py— galaxy-attached shear →fields=af.Collection(field=af.Model(al.MassField, ...)); prose names theMassFieldscripts/multi_dataset/features/imaging_and_interferometer/simulator.py—al.MassField(redshift, shear=...)passed asTracer(fields=[field])(dataset bit-identical)scripts/multi_dataset/features/imaging_and_point_source/modeling.py— galaxy-attached shear →fields=af.Collection(field=af.Model(al.MassField, ...)); prose names theMassFieldscripts/multi_dataset/features/one_by_one/modeling.py— galaxy-attached shear →fields=af.Collection(field=af.Model(al.MassField, ...)); prose names theMassFieldscripts/multi_dataset/features/pixelization/modeling.py— galaxy-attached shear →fields=af.Collection(field=af.Model(al.MassField, ...)); prose names theMassFieldscripts/multi_dataset/features/pixelization/simulator.py—al.MassField(redshift, shear=...)passed asTracer(fields=[field])(dataset bit-identical)scripts/multi_dataset/features/same_wavelength/modeling.py— galaxy-attached shear →fields=af.Collection(field=af.Model(al.MassField, ...)); prose names theMassFieldscripts/multi_dataset/features/same_wavelength/simulator.py—al.MassField(redshift, shear=...)passed asTracer(fields=[field])(dataset bit-identical)scripts/multi_dataset/features/slam/independent.py— SLaM stage chainsfields=<result>.model|instance.fieldsinstead of a galaxyshear=kwargscripts/multi_dataset/features/slam/simultaneous.py— SLaM stage chainsfields=<result>.model|instance.fieldsinstead of a galaxyshear=kwargscripts/multi_dataset/features/wavelength_dependence/modeling.py— galaxy-attached shear →fields=af.Collection(field=af.Model(al.MassField, ...)); prose names theMassFieldscripts/multi_dataset/features/wavelength_dependence/simulator.py—al.MassField(redshift, shear=...)passed asTracer(fields=[field])(dataset bit-identical)scripts/multi_dataset/modeling.py— galaxy-attached shear →fields=af.Collection(field=af.Model(al.MassField, ...)); prose names theMassFieldscripts/multi_dataset/simulator.py—al.MassField(redshift, shear=...)passed asTracer(fields=[field])(dataset bit-identical)scripts/multi_dataset/start_here.py— shear composed as anal.MassFieldinfields=; prose rewrittenscripts/multi_galaxy/features/advanced/double_source_plane_lens/chaining.py— chained stages carryfields=<result>.model|instance.fieldsscripts/multi_galaxy/features/advanced/double_source_plane_lens/fit.py— instance tracer built withfields=[field]scripts/multi_galaxy/features/advanced/double_source_plane_lens/likelihood_function.py— hand-summed deflections read the shear off theMassFieldscripts/multi_galaxy/features/advanced/double_source_plane_lens/modeling.py— galaxy-attached shear →fields=af.Collection(field=af.Model(al.MassField, ...)); prose names theMassFieldscripts/multi_galaxy/features/advanced/double_source_plane_lens/simulator.py—al.MassField(redshift, shear=...)passed asTracer(fields=[field])(dataset bit-identical)scripts/multi_galaxy/features/advanced/double_source_plane_lens/slam.py— SLaM stage chainsfields=<result>.model|instance.fieldsinstead of a galaxyshear=kwargscripts/multi_galaxy/features/advanced/mass_stellar_dark/chaining.py— chained stages carryfields=<result>.model|instance.fieldsscripts/multi_galaxy/features/advanced/mass_stellar_dark/fit.py— instance tracer built withfields=[field]scripts/multi_galaxy/features/advanced/mass_stellar_dark/likelihood_function.py— hand-summed deflections read the shear off theMassFieldscripts/multi_galaxy/features/advanced/mass_stellar_dark/modeling.py— galaxy-attached shear →fields=af.Collection(field=af.Model(al.MassField, ...)); prose names theMassFieldscripts/multi_galaxy/features/advanced/mass_stellar_dark/simulator.py—al.MassField(redshift, shear=...)passed asTracer(fields=[field])(dataset bit-identical)scripts/multi_galaxy/features/advanced/mass_stellar_dark/slam.py— SLaM stage chainsfields=<result>.model|instance.fieldsinstead of a galaxyshear=kwargscripts/multi_galaxy/features/advanced/operated_light_profile/modeling.py— galaxy-attached shear →fields=af.Collection(field=af.Model(al.MassField, ...)); prose names theMassFieldscripts/multi_galaxy/features/advanced/operated_light_profile/simulator.py—al.MassField(redshift, shear=...)passed asTracer(fields=[field])(dataset bit-identical)scripts/multi_galaxy/features/advanced/shapelets/fit.py— instance tracer built withfields=[field]scripts/multi_galaxy/features/advanced/shapelets/modeling.py— galaxy-attached shear →fields=af.Collection(field=af.Model(al.MassField, ...)); prose names theMassFieldscripts/multi_galaxy/features/advanced/sky_background/fit.py— instance tracer built withfields=[field]scripts/multi_galaxy/features/advanced/sky_background/modeling.py— galaxy-attached shear →fields=af.Collection(field=af.Model(al.MassField, ...)); prose names theMassFieldscripts/multi_galaxy/features/advanced/sky_background/simulator.py—al.MassField(redshift, shear=...)passed asTracer(fields=[field])(dataset bit-identical)scripts/multi_galaxy/features/advanced/subhalo/detect/start_here.py— shear composed as anal.MassFieldinfields=; prose rewrittenscripts/multi_galaxy/features/advanced/subhalo/simulator.py—al.MassField(redshift, shear=...)passed asTracer(fields=[field])(dataset bit-identical)scripts/multi_galaxy/features/extra_galaxies/modeling.py— galaxy-attached shear →fields=af.Collection(field=af.Model(al.MassField, ...)); prose names theMassFieldscripts/multi_galaxy/features/extra_galaxies/simulator.py—al.MassField(redshift, shear=...)passed asTracer(fields=[field])(dataset bit-identical)scripts/multi_galaxy/features/extra_galaxies/slam.py— SLaM stage chainsfields=<result>.model|instance.fieldsinstead of a galaxyshear=kwargscripts/multi_galaxy/features/linear_light_profiles/fit.py— instance tracer built withfields=[field]scripts/multi_galaxy/features/linear_light_profiles/likelihood_function.py— hand-summed deflections read the shear off theMassFieldscripts/multi_galaxy/features/linear_light_profiles/modeling.py— galaxy-attached shear →fields=af.Collection(field=af.Model(al.MassField, ...)); prose names theMassFieldscripts/multi_galaxy/features/linear_light_profiles/slam.py— SLaM stage chainsfields=<result>.model|instance.fieldsinstead of a galaxyshear=kwargscripts/multi_galaxy/features/multi_gaussian_expansion/fit.py— instance tracer built withfields=[field]scripts/multi_galaxy/features/multi_gaussian_expansion/likelihood_function.py— hand-summed deflections read the shear off theMassFieldscripts/multi_galaxy/features/multi_gaussian_expansion/modeling.py— galaxy-attached shear →fields=af.Collection(field=af.Model(al.MassField, ...)); prose names theMassFieldscripts/multi_galaxy/features/multi_gaussian_expansion/simulator.py—al.MassField(redshift, shear=...)passed asTracer(fields=[field])(dataset bit-identical)scripts/multi_galaxy/features/multi_gaussian_expansion/slam.py— SLaM stage chainsfields=<result>.model|instance.fieldsinstead of a galaxyshear=kwargscripts/multi_galaxy/features/multi_gaussian_expansion/source_science.py— galaxy-attached shear →fields=af.Collection(field=af.Model(al.MassField, ...)); prose names theMassFieldscripts/multi_galaxy/features/no_lens_light/modeling.py— galaxy-attached shear →fields=af.Collection(field=af.Model(al.MassField, ...)); prose names theMassFieldscripts/multi_galaxy/features/no_lens_light/simulator.py—al.MassField(redshift, shear=...)passed asTracer(fields=[field])(dataset bit-identical)scripts/multi_galaxy/features/no_lens_light/slam.py— SLaM stage chainsfields=<result>.model|instance.fieldsinstead of a galaxyshear=kwargscripts/multi_galaxy/features/pixelization/adaptive.py— galaxy-attached shear →fields=af.Collection(field=af.Model(al.MassField, ...)); prose names theMassFieldscripts/multi_galaxy/features/pixelization/cpu_fast_modeling.py— galaxy-attached shear →fields=af.Collection(field=af.Model(al.MassField, ...)); prose names theMassFieldscripts/multi_galaxy/features/pixelization/delaunay.py— galaxy-attached shear →fields=af.Collection(field=af.Model(al.MassField, ...)); prose names theMassFieldscripts/multi_galaxy/features/pixelization/fit.py— instance tracer built withfields=[field]scripts/multi_galaxy/features/pixelization/likelihood_function.py— hand-summed deflections read the shear off theMassFieldscripts/multi_galaxy/features/pixelization/modeling.py— galaxy-attached shear →fields=af.Collection(field=af.Model(al.MassField, ...)); prose names theMassFieldscripts/multi_galaxy/features/pixelization/plot.py— galaxy-attached shear →fields=af.Collection(field=af.Model(al.MassField, ...)); prose names theMassFieldscripts/multi_galaxy/features/pixelization/slam.py— SLaM stage chainsfields=<result>.model|instance.fieldsinstead of a galaxyshear=kwargscripts/multi_galaxy/features/pixelization/source_science.py— galaxy-attached shear →fields=af.Collection(field=af.Model(al.MassField, ...)); prose names theMassFieldscripts/multi_galaxy/features/scaling_relation/modeling.py— galaxy-attached shear →fields=af.Collection(field=af.Model(al.MassField, ...)); prose names theMassFieldscripts/multi_galaxy/features/scaling_relation/slam.py— SLaM stage chainsfields=<result>.model|instance.fieldsinstead of a galaxyshear=kwargscripts/multi_galaxy/fit.py— instance tracer built withfields=[field]scripts/multi_galaxy/likelihood_function.py— hand-summed deflections read the shear off theMassFieldscripts/multi_galaxy/modeling.py—shear_galaxy(a galaxy) leavesgalaxies=;__External Shear__rewritten for the lens-pair readerscripts/multi_galaxy/plot.py— galaxy-attached shear →fields=af.Collection(field=af.Model(al.MassField, ...)); prose names theMassFieldscripts/multi_galaxy/simulator.py—al.MassField(redshift, shear=...)passed asTracer(fields=[field])(dataset bit-identical)scripts/multi_galaxy/simulator_sample.py—al.MassField(redshift, shear=...)passed asTracer(fields=[field])(dataset bit-identical)scripts/multi_galaxy/slam.py— SLaM stage chainsfields=<result>.model|instance.fieldsinstead of a galaxyshear=kwargscripts/multi_galaxy/source_science.py— galaxy-attached shear →fields=af.Collection(field=af.Model(al.MassField, ...)); prose names theMassFieldscripts/multi_galaxy/start_here.py— shear composed as anal.MassFieldinfields=; prose rewrittenscripts/point_source/features/extra_galaxies/modeling.py— galaxy-attached shear →fields=af.Collection(field=af.Model(al.MassField, ...)); prose names theMassFieldscripts/point_source/features/extra_galaxies/simulator.py—al.MassField(redshift, shear=...)passed asTracer(fields=[field])(dataset bit-identical)scripts/point_source/features/fluxes.py— galaxy-attached shear →fields=af.Collection(field=af.Model(al.MassField, ...)); prose names theMassFieldscripts/point_source/features/multiple_sources/modeling.py— galaxy-attached shear →fields=af.Collection(field=af.Model(al.MassField, ...)); prose names theMassFieldscripts/point_source/features/multiple_sources/simulator.py—al.MassField(redshift, shear=...)passed asTracer(fields=[field])(dataset bit-identical)scripts/point_source/features/time_delays.py— galaxy-attached shear →fields=af.Collection(field=af.Model(al.MassField, ...)); prose names theMassFieldscripts/point_source/modeling.py— galaxy-attached shear →fields=af.Collection(field=af.Model(al.MassField, ...)); prose names theMassFieldscripts/point_source/start_here.py— shear composed as anal.MassFieldinfields=; prose rewrittenscripts/weak/modeling.py— galaxy-attached shear →fields=af.Collection(field=af.Model(al.MassField, ...)); prose names theMassFieldUpstream PR
Test Plan
main(PyAutoGalaxy 33714b80 / PyAutoLens 71973806),run_python.py --listwith the smoke profile (PYAUTO_TEST_MODE=2), from the task worktree:autolens_workspace subset — 28/28 PASS, 0 FAIL, 0 TIMEOUT:
imaging/simulator.pyimaging/modeling.pyimaging/fit.pyimaging/features/scaling_relation/modeling.pyimaging/features/pixelization/delaunay.pyimaging/features/advanced/los_halos/simulator.pyinterferometer/modeling.pyinterferometer/features/pixelization/delaunay.pypoint_source/features/extra_galaxies/modeling.pymulti_dataset/modeling.pymulti_dataset/plot.pymulti_galaxy/simulator.pymulti_galaxy/start_here.pymulti_galaxy/modeling.pymulti_galaxy/fit.pymulti_galaxy/slam.pymulti_galaxy/features/extra_galaxies/modeling.pymulti_galaxy/features/pixelization/modeling.pymulti_galaxy/features/linear_light_profiles/modeling.pymulti_galaxy/features/advanced/double_source_plane_lens/chaining.pymulti_galaxy/features/advanced/mass_stellar_dark/chaining.pymulti_galaxy/features/advanced/subhalo/simulator.pygroup/modeling.pygroup/features/group_halo/modeling.pyguides/profiles/mass.pyguides/coolest_interop.pyguides/modeling/cookbook.pyguides/modeling/slam_start_here.pyJAX leg (same profile with
PYAUTO_DISABLE_JAXunset; log showsStarting non-linear search with JAX (CPU: cpu), no-1e99) — 2/2 PASS:multi_galaxy/modeling.pyimaging/modeling.pyfields=):imaging/simulator.py,interferometer/simulator.py,multi_galaxy/simulator.py,group/modeling.py(prior medians), LOSsimulator_jax.pyhalo/sheet arrays — max abs diff 0.0 in every case; prior counts unchanged (e.g. group 33 = 33).grep -rnE "al\.Galaxy\(.*(shear|mass_sheet|potential)="andgrep -rn shear_galaxyoverscripts/return nothing in code; an AST walk over everyGalaxy(...)/af.Model(al.Galaxy, ...)call reports zero galaxy-attached sites in this repo (the single-lineaf.Model(al.Galaxy, ..., shear=shear)form escapes the text greps, so the AST check is the witness).generate.py autolens, 218 notebooks ↔ 218 scripts),workspace_index.json+llms-full.txtrefreshed;scripts/check_sizes.shOK;check_navigator.py --root autolens_workspace --banners=failOK;check_search_memory.pyOK;black --checkclean on all 216 changed scripts.main)Closes #559 (both PRs of the task reference it; the issue closes at
/prm).Generated by the PyAutoLabs agent workflow.
🤖 Generated with Claude Code