PointSource – Point Source Rendering Modules
Point Source Classes Available
SinglePointSource - Class to generate single point source model
paltas.PointSource.point_source_base module
Provides the base class for specifying the point source of a lensing system.
This module contains the base class that all the point source classes will build from. Because the steps for rendering a source can vary between different models, the required functions are very sparse.
- class paltas.PointSource.point_source_base.PointSourceBase(point_source_parameters)[source]
Bases:
objectBase class for producing lenstronomy PointSource arguments
- Parameters:
point_source_parameters (dict) – dictionary with source-specific parameters.
Notes
Has no required parameters by default.
- check_parameterization(required_params)[source]
Check that all the required parameters are present in the point_source_parameters.
- Parameters:
required_params ([str,...]) – A list of strings containing the required parameters.
- draw_point_source()[source]
Return lenstronomy PointSource names and kwargs
- Returns:
(list,list) A list containing the model name(s), and a list containing the model kwargs dictionaries.
- required_parameters = ()
paltas.PointSource.single_point_source module
Provides class for specifying a single point source
This module contains the class required to provide a single point source as the source for paltas.
- class paltas.PointSource.single_point_source.SinglePointSource(point_source_parameters)[source]
Bases:
PointSourceBaseClass to generate single point source model
- Parameters:
point_source_parameters (dict) – dictionary with source-specific parameters.
Notes:
Required Parameters
magnitude - AB absolute magnitude of the point source
x_point_source - x-coordinate lens center in units of arcseconds
y_point_source - y-coordinate lens center in units of arcseconds
z_lens - main deflector redshift
output_ab_zeropoint - AB magnitude zeropoint of the detector
compute_time_delay - bool determining if time delays will be computed and added to the returned kwargs
Optional Parameters
mag_pert - list of 4 fractional magnification perturbations that will be applied to each point source image
kappa_ext - external convergence used to calculate time delays
time_delay_error - list of errors on the time delay measurements in units of days.
- draw_point_source()[source]
Return lenstronomy PointSource kwargs
- Returns:
- (list,list) A list containing the model names(s), and
a list containing the model kwargs dictionaries.
- required_parameters = ('x_point_source', 'y_point_source', 'magnitude', 'output_ab_zeropoint', 'compute_time_delays')