Jammy2211 / PyAutoGalaxy

PyAutoGalaxy: Open-Source Multiwavelength Galaxy Structure & Morphology
https://pyautogalaxy.readthedocs.io/
MIT License
26 stars 13 forks source link

Feature/adapt loading #160

Closed Jammy2211 closed 3 months ago

Jammy2211 commented 3 months ago

Recent updates changed it so that the AdaptImages were computed and passed to an Analysis object during search chaining pipelines.

However, this meant resuming already completed pipelines is slow, because the adapt images would be computed for each fit even though for fits that are already completed the adapt images are not used.

This PR instead uses an AdaptImageMaker object, which computes the AdaptImages when they are used and then caches them. This means pipelines can be resumed much faster again.