Autolens

Latest version: v2024.11.13.2

Safety actively analyzes 685670 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 5

2023.9.18.4

This release implements two major changes to **PyAutoLens**:

**Nautilus:**

For the past ~3 years, lens model fitting has used the nested sampling algorithm Dynesty.

Recently, a new nested sampler, Nautilus (https://nautilus-sampler.readthedocs.io/en/stable/), was released, which uses machine-learning based techniques to improve sampling.

Extensive testing of lens modeling with Nautilus has revealed that it:

- Speeds up the fitting of simple lens models by ~x2 - x3.
- Speeds up the fitting of complex lens models by ~x3 - x5+.
- Is more robust and reliable (e.g less likely to infer a local maxima, can fit more complex lens models).
- Controlled predominantly by just one parameter `n_live`, so is simpler to use than `dynesty`.
- Parallelization using Python `multiprocessing` is more efficient than `dynesty` and now supports proper error handling.

`Nautilus` is therefore now the default lens modeler, with all workspace examples updated accordingly.

NOTE: `Nautilus` does not currently support on-the-fly output and to get the results of a lens model mid-fit a user can instead cancel the run (e.g. via Ctrl + C) and restart it, where the maximum likelihood model will be output.

**Results Output**

Result metadata was previously output as `.pickle` files, which were not human readable and depended on project imports, hurting backwards compatibility.

All metadata is now output as human readable `.json` files and dataset as .`fits` files, making it a lot more straight forward for a user to interpret how data is stored internally within **PyAutoLens**:

![image](https://github.com/Jammy2211/PyAutoLens/assets/23455639/ffd454dc-47e1-42fb-8e2a-fa807c221247)

Here is an example of the `search.json` file:

![image](https://github.com/Jammy2211/PyAutoLens/assets/23455639/96015619-22fc-47a9-af3f-c050a7d5e267)

All internal functionality (e.g. the sqlite database) has been updated to use these files.

All workspace documentation has been updated accordingly.

**Other:**

- `imaging/modeling/features` split to make linear light profiles and multi gaussian expansion more visible.
- Improved **HowToLens** tutorial 5 on linear light profiles.
- Power law with multipole parameterization updated, now supports multipoles of any order (https://github.com/Jammy2211/PyAutoGalaxy/pull/115).
- Update certain requirements (e.g. PyYAML) to mitigate installation issues (https://github.com/rhayes777/PyAutoConf/pull/41).
- Lots of quality-of-life improvements thoughout the code bases.

2023.7.5.2

Bug fixes for new MacOS parallelization.

No new features.

2023.6.18.3

- Fixes bug so that the `all_at_end_png` and `all_at_end_fits` visualization configuration options now actually do output all images at the end of a model-fit as `.png` and `.fits` files.

- Fixes bug so that pixelized source reconstructions are output as `.fits` files at the end.

- Fixes bug so that visuals at end display correctly.

2023.6.12.5

- Visualization now outputs publication quality plots by default (e.g. less whitespace, bigger tick labels, units):

https://github.com/Jammy2211/PyAutoGalaxy/pull/96
https://github.com/Jammy2211/PyAutoLens/pull/216

- Improved visualization of `FitImaging` and `FitInterferometer` subpots:

https://github.com/Jammy2211/PyAutoGalaxy/pull/96

- Profiling tools implemented, with documentation and examples added to workspace:

https://github.com/Jammy2211/PyAutoGalaxy/pull/110

- `PowerLawMultipole` method generalized to all multipoles:

https://github.com/Jammy2211/PyAutoGalaxy/pull/103

- Critical Curves / Caustic plotter separating if there are more than one, and options to customize tangential and radial separately:

https://github.com/Jammy2211/PyAutoGalaxy/pull/92

- `SMBH` and `SMBHBinary` super massive black hole mass profiles implemented:

https://github.com/Jammy2211/PyAutoGalaxy/pull/98
https://github.com/Jammy2211/PyAutoGalaxy/pull/99

- Fix issues associated with visualization of linear light profiles and `Basis` objects:

https://github.com/Jammy2211/PyAutoGalaxy/pull/102
https://github.com/Jammy2211/PyAutoLens/pull/217

- `PowerLaw` `potential_2d_from` method faster:

https://github.com/Jammy2211/PyAutoGalaxy/pull/108

- `ExternalShear` now has `potential_2d_from` method implemented:

https://github.com/Jammy2211/PyAutoGalaxy/pull/109

- Removal of a number of unused legacy features (e.g. hyper galaxy noise scaling).

https://github.com/Jammy2211/PyAutoLens/pull/219

2023.3.27.1

- [Shapelets basis functions for representing the emission of a lens or source galaxy implemented](https://github.com/Jammy2211/PyAutoGalaxy/pull/91) (see also https://github.com/Jammy2211/autolens_workspace/blob/release/notebooks/imaging/modeling/features/shapelets.ipynb)

- [Critical curves and caustics of mass profile projects are now computed such that if there are multiple curves, all are computed and returned as a list.](https://github.com/Jammy2211/PyAutoGalaxy/pull/92)

- [Updated critical curve calculations also mean Einstein Radii, Einstein Masses are other related quantities can be returned as a list of values (one for each curve) or an average](https://github.com/Jammy2211/PyAutoGalaxy/pull/92)

- [Added `matplotlib` wrapper to the `annotate` function.](https://github.com/Jammy2211/PyAutoGalaxy/pull/89)

2023.3.21.5

This is the latest version, which primarily brings in stability upgrades and fixes bugs.

Page 2 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.