LSST-strong-lensing / slsim

Strong lensing simulation pipeline
MIT License
18 stars 30 forks source link

Refactoring SLSim - Merging DeflectorBase and SourcePopBase into single Population class. #225

Open jacob-hjortlund opened 3 months ago

jacob-hjortlund commented 3 months ago

Current Status

DeflectorBase and SourcePopBase currently share the same overall responsibility, providing a sample deflector or source from a predefined population of galaxies.

Proposed Solution

Merge DeflectorBase and SourcePopBase into a single Population class that takes an AstroPy.Table as input and provides a method for drawing a single sample from the given table, see Figure in #223. In the future this class should also accept transient metadata associated with the galaxies and provide them with sampling, as well as construct a Galaxy object from the drawn sample.

To-Do List