How pyautolabs/pyautogalaxy works
PyAutoGalaxy models galaxy morphology and structure, then fits those models to imaging or interferometer observations. The main workflow combines light and mass profiles into galaxies, evaluates their predicted signal, and compares it with data; linear components may be reconstructed through an inversion. Analysis modules wrap fits for scientific modeling and results. The graph also preserves ellipse fitting, lensing calculations, cosmology, plotting, and COOLEST interoperability. Some subsystem links reflect README capabilities rather than inspected runtime calls because their implementation was not sampled.
Main entry points: galaxies.py Galaxy collections · fit_imaging.py Imaging fit · galaxy.py Galaxy model · fit_interferometer.py Interferometer fit
Components 23
Galaxy modeling
- Light profiles
autogalaxy/profiles/light/abstract.py - Mass profiles
autogalaxy/profiles/mass/abstract/abstract.py - Profile bases
autogalaxy/profiles/basis.py - Galaxy model
autogalaxy/galaxy/galaxy.py - Galaxy collections
autogalaxy/galaxy/galaxies.py
Data fitting
- Imaging fit
autogalaxy/imaging/fit_imaging.py - Interferometer fit
autogalaxy/interferometer/fit_interferometer.py - Linear inversion
autogalaxy/galaxy/to_inversion.py - Adaptive images
autogalaxy/analysis/adapt_images/adapt_images.py - Image operations
autogalaxy/operate/image.py
Scientific analysis
- Dataset analysis
autogalaxy/analysis/analysis/dataset.py - Imaging analysis
autogalaxy/imaging/model/analysis.py - Interferometer analysis
autogalaxy/interferometer/model/analysis.py - Analysis results
autogalaxy/analysis/result.py
Lensing science
- Ellipse fitting
autogalaxy/ellipse/fit_ellipse.py - Lensing cosmology
autogalaxy/cosmology/model.py - Lensing quantities
autogalaxy/operate/lens_calc.py - Coordinate conversion
autogalaxy/convert.py
Outputs and interoperability
- Scientific plotting
autogalaxy/util/plot_utils.py - COOLEST exchange
autogalaxy/interop/coolest/mass.py - JAX pytrees
autogalaxy/analysis/jax_pytrees.py
Other components
- Researcher
- Observations
Connections 27
- Researcher → Galaxy collections: specifies model
- Observations → Imaging fit: supplies imaging
autogalaxy/imaging/fit_imaging.py - Observations → Interferometer fit: supplies visibilities
autogalaxy/interferometer/fit_interferometer.py - Light profiles → Galaxy model: composes
autogalaxy/galaxy/galaxy.py - Mass profiles → Galaxy model: composes
autogalaxy/galaxy/galaxy.py - Profile bases → Galaxy model: groups profiles
autogalaxy/galaxy/galaxy.py - Galaxy model → Galaxy collections: aggregates
autogalaxy/galaxy/galaxies.py - Galaxy collections → Imaging fit: provides model
autogalaxy/imaging/fit_imaging.py - Galaxy collections → Interferometer fit: provides model
autogalaxy/interferometer/fit_interferometer.py - Imaging fit → Linear inversion: builds inversion
autogalaxy/imaging/fit_imaging.py - Interferometer fit → Linear inversion: builds inversion
autogalaxy/interferometer/fit_interferometer.py - Adaptive images → Linear inversion: guides reconstruction
autogalaxy/galaxy/to_inversion.py - Imaging fit → Image operations: operates images
- Imaging fit → Dataset analysis: evaluated by
autogalaxy/imaging/model/analysis.py - Interferometer fit → Dataset analysis: evaluated by
autogalaxy/interferometer/model/analysis.py - Dataset analysis → Lensing cosmology: uses distances
autogalaxy/analysis/analysis/dataset.py - Imaging analysis → Imaging fit: constructs fit
autogalaxy/imaging/model/analysis.py - Interferometer analysis → Interferometer fit: constructs fit
autogalaxy/interferometer/model/analysis.py - Imaging analysis → Analysis results: produces results
autogalaxy/imaging/model/analysis.py - Interferometer analysis → Analysis results: produces results
autogalaxy/interferometer/model/analysis.py - Researcher → Ellipse fitting: fits morphology
- Galaxy model → Lensing quantities: supplies deflections
- Mass profiles → Lensing cosmology: uses lens distances
- Galaxy collections → Scientific plotting: plots model
autogalaxy/galaxy/plot/galaxies_plots.py - Mass profiles → COOLEST exchange: converts mass
autogalaxy/interop/coolest/mass.py - Galaxy collections → JAX pytrees: registered as pytree
autogalaxy/analysis/jax_pytrees.py - Light profiles → Coordinate conversion: converts ellipticity
autogalaxy/profiles/light/abstract.py