rhayes777 / PyAutoFit

PyAutoFit: Classy Probabilistic Programming
https://pyautofit.readthedocs.io/
MIT License
59 stars 11 forks source link

Feature/result cast #989

Closed Jammy2211 closed 5 months ago

Jammy2211 commented 5 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.