Skip to content

January 2023 (JOSS)

Compare
Choose a tag to compare
@Jammy2211 Jammy2211 released this 19 Jan 10:26
· 900 commits to main since this release

This is a major release, which is tied to the publication of PyAutoGalaxy in the Journal of Open Source software (JOSS).

This release updates many aspects of the API, switches configuration files to YAML, updates library requirements and adds new functionality.

API Changes:

  • All elliptical light profiles and mass profiles no longer prefix with the Ell tag, for conciseness / readability. For example, EllSersic is now just Sersic, and EllIsothermal is now Isothermal.
  • The Sph prefix is now a suffix, for example SphSersic is now SersicSph and SphIsothermal is now Isothermal.
  • The ``elliptical_componentsparameter has been shorted toell_comps`.
  • The ExternalShear input has been changed from elliptical_components to gamma_1 and gamma_2 (the shear is still defined the same, where in the olversion version elliptical_components[0] = gamma_2 and elliptical_components[1] = gamma_1.
  • The manual_ API for data structures (e.g. Array2D, Grid2D) has been removed.

Yaml Configs

Linear Light Profiles / Basis / Multi Gaussian Expansion

Linear light profiles are now supported, which are identical to ordinary light profiles but the intensity parameter is solved for via linear algebra. This means lower dimensionality models can be fitted, making dynesty converge more reliably:

https://github.com/Jammy2211/autogalaxy_workspace/blob/release/scripts/imaging/modeling/light_parametric_linear__mass_total__source_parametric_linear.py

Fits use a Basis object composed of many linear light profiles are supports, for example using a Multi Gaussian Expansion of 20+ Gaussians to fit the lens's light:

https://github.com/Jammy2211/autogalaxy_workspace/blob/release/scripts/imaging/modeling/light_parametric_linear__mass_total__source_parametric_linear.py

These features are described fully in the following HowToGalaxy tutorial:

https://github.com/Jammy2211/autogalaxy_workspace/blob/release/scripts/howtogalaxy/chapter_2_modeling/tutorial_5_linear_profiles.py

API Documentation

API documentation on readthedocs is now being written, which is still a work in progress but more useable than it was previously (https://pyautogalaxy.readthedocs.io/en/latest/api/data.html).

Requirements

The requirements of many projects have been updated to their latest versions, most notably dynesty v2.0.2.