Jammy2211 / PyAutoLens

PyAutoLens: Open Source Strong Gravitational Lensing
https://pyautolens.readthedocs.io/
MIT License
162 stars 32 forks source link

Feature/result cast #263

Closed Jammy2211 closed 6 months ago

Jammy2211 commented 6 months ago

New API for how the Analysis class returns a Return.

Now, the Analysis class has a Result class attribute, which a user can overwrite with their own custom Result class.

This removes a number of unecessary make_result functions that end up populating Analysis objects and is a cleaner API for users, as shown in the docs updated in this PR.