lenstronomy package¶
Subpackages¶
- lenstronomy.Analysis package
- Submodules
- lenstronomy.Analysis.image_reconstruction module
- lenstronomy.Analysis.kinematics_api module
KinematicsAPI
KinematicsAPI.__init__()
KinematicsAPI.velocity_dispersion()
KinematicsAPI.velocity_dispersion_map()
KinematicsAPI.velocity_dispersion_analytical()
KinematicsAPI.galkin_settings()
KinematicsAPI.kinematic_lens_profiles()
KinematicsAPI.kinematic_light_profile()
KinematicsAPI.kinematics_modeling_settings()
KinematicsAPI.transform_kappa_ext()
- lenstronomy.Analysis.lens_profile module
LensProfileAnalysis
LensProfileAnalysis.__init__()
LensProfileAnalysis.effective_einstein_radius_grid()
LensProfileAnalysis.effective_einstein_radius()
LensProfileAnalysis.local_lensing_effect()
LensProfileAnalysis.profile_slope()
LensProfileAnalysis.mst_invariant_differential()
LensProfileAnalysis.radial_lens_profile()
LensProfileAnalysis.multi_gaussian_lens()
LensProfileAnalysis.mass_fraction_within_radius()
LensProfileAnalysis.convergence_peak()
- lenstronomy.Analysis.light2mass module
- lenstronomy.Analysis.light_profile module
LightProfileAnalysis
LightProfileAnalysis.__init__()
LightProfileAnalysis.ellipticity()
LightProfileAnalysis.half_light_radius()
LightProfileAnalysis.radial_light_profile()
LightProfileAnalysis.multi_gaussian_decomposition()
LightProfileAnalysis.multi_gaussian_decomposition_ellipse()
LightProfileAnalysis.flux_components()
- lenstronomy.Analysis.multi_patch_reconstruction module
- lenstronomy.Analysis.td_cosmography module
TDCosmography
TDCosmography.__init__()
TDCosmography.time_delays()
TDCosmography.fermat_potential()
TDCosmography.velocity_dispersion_dimension_less()
TDCosmography.velocity_dispersion_map_dimension_less()
TDCosmography.ddt_from_time_delay()
TDCosmography.ds_dds_from_kinematics()
TDCosmography.ddt_dd_from_time_delay_and_kinematics()
- Module contents
- lenstronomy.Conf package
- lenstronomy.Cosmo package
- Submodules
- lenstronomy.Cosmo.background module
- lenstronomy.Cosmo.cosmo_solver module
- lenstronomy.Cosmo.kde_likelihood module
- lenstronomy.Cosmo.lcdm module
- lenstronomy.Cosmo.lens_cosmo module
LensCosmo
LensCosmo.__init__()
LensCosmo.h
LensCosmo.dd
LensCosmo.ds
LensCosmo.dds
LensCosmo.ddt
LensCosmo.sigma_crit
LensCosmo.sigma_crit_angle
LensCosmo.phys2arcsec_lens()
LensCosmo.arcsec2phys_lens()
LensCosmo.arcsec2phys_source()
LensCosmo.kappa2proj_mass()
LensCosmo.mass_in_theta_E()
LensCosmo.mass_in_coin()
LensCosmo.time_delay_units()
LensCosmo.time_delay2fermat_pot()
LensCosmo.nfw_angle2physical()
LensCosmo.nfw_physical2angle()
LensCosmo.nfwParam_physical()
LensCosmo.nfw_M_theta_r200()
LensCosmo.sis_theta_E2sigma_v()
LensCosmo.sis_sigma_v2theta_E()
LensCosmo.hernquist_phys2angular()
LensCosmo.hernquist_angular2phys()
LensCosmo.uldm_angular2phys()
LensCosmo.uldm_mphys2angular()
LensCosmo.sersic_m_star2k_eff()
LensCosmo.sersic_k_eff2m_star()
- lenstronomy.Cosmo.nfw_param module
- Module contents
- lenstronomy.Data package
- Submodules
- lenstronomy.Data.coord_transforms module
Coordinates
Coordinates.__init__()
Coordinates.transform_angle2pix
Coordinates.transform_pix2angle
Coordinates.xy_at_radec_0
Coordinates.radec_at_xy_0
Coordinates.map_coord2pix()
Coordinates.map_pix2coord()
Coordinates.pixel_area
Coordinates.pixel_width
Coordinates.coordinate_grid()
Coordinates.shift_coordinate_system()
Coordinates1D
- lenstronomy.Data.image_noise module
- lenstronomy.Data.imaging_data module
- lenstronomy.Data.pixel_grid module
- lenstronomy.Data.psf module
- Module contents
- lenstronomy.GalKin package
- Submodules
- lenstronomy.GalKin.analytic_kinematics module
- lenstronomy.GalKin.anisotropy module
- lenstronomy.GalKin.aperture module
- lenstronomy.GalKin.aperture_types module
- lenstronomy.GalKin.cosmo module
- lenstronomy.GalKin.galkin module
- lenstronomy.GalKin.galkin_model module
- lenstronomy.GalKin.light_profile module
- lenstronomy.GalKin.numeric_kinematics module
NumericKinematics
NumericKinematics.__init__()
NumericKinematics.lum_weight_int_method
NumericKinematics.max_integrate
NumericKinematics.min_integrate
NumericKinematics.lum_weighted_vel_disp()
NumericKinematics.sigma_s2()
NumericKinematics.sigma_s2_project()
NumericKinematics.sigma_s2_r()
NumericKinematics.sigma_r2()
NumericKinematics.mass_3d()
NumericKinematics.grav_potential()
NumericKinematics.draw_light()
NumericKinematics.delete_cache()
NumericKinematics.I_R_sigma2_and_IR()
- lenstronomy.GalKin.observation module
- lenstronomy.GalKin.psf module
- lenstronomy.GalKin.velocity_util module
- Module contents
- lenstronomy.ImSim package
- Subpackages
- lenstronomy.ImSim.MultiBand package
- lenstronomy.ImSim.Numerics package
- Submodules
- lenstronomy.ImSim.Numerics.adaptive_numerics module
- lenstronomy.ImSim.Numerics.convolution module
- lenstronomy.ImSim.Numerics.grid module
- lenstronomy.ImSim.Numerics.numba_convolution module
- lenstronomy.ImSim.Numerics.numerics module
- lenstronomy.ImSim.Numerics.partial_image module
- lenstronomy.ImSim.Numerics.point_source_rendering module
- Module contents
- Submodules
- lenstronomy.ImSim.de_lens module
- lenstronomy.ImSim.image2source_mapping module
- lenstronomy.ImSim.image_linear_solve module
ImageLinearFit
ImageLinearFit.__init__()
ImageLinearFit.image_linear_solve()
ImageLinearFit.image_pixelbased_solve()
ImageLinearFit.linear_response_matrix()
ImageLinearFit.data_response
ImageLinearFit.error_response()
ImageLinearFit.likelihood_data_given_model()
ImageLinearFit.likelihood_data_given_model_solution()
ImageLinearFit.num_param_linear()
ImageLinearFit.update_linear_kwargs()
ImageLinearFit.linear_param_from_kwargs()
ImageLinearFit.update_pixel_kwargs()
ImageLinearFit.reduced_residuals()
ImageLinearFit.reduced_chi2()
ImageLinearFit.num_data_evaluate
ImageLinearFit.update_data()
ImageLinearFit.image2array_masked()
ImageLinearFit.array_masked2image()
ImageLinearFit.error_map_source()
ImageLinearFit.point_source_linear_response_set()
ImageLinearFit.check_positive_flux()
- lenstronomy.ImSim.image_model module
- Module contents
- Subpackages
- lenstronomy.LensModel package
- Subpackages
- lenstronomy.LensModel.LightConeSim package
- lenstronomy.LensModel.LineOfSight package
- lenstronomy.LensModel.MultiPlane package
- lenstronomy.LensModel.Profiles package
- Submodules
- lenstronomy.LensModel.Profiles.arc_perturbations module
- lenstronomy.LensModel.Profiles.base_profile module
- lenstronomy.LensModel.Profiles.chameleon module
- lenstronomy.LensModel.Profiles.cnfw module
- lenstronomy.LensModel.Profiles.cnfw_ellipse module
- lenstronomy.LensModel.Profiles.const_mag module
- lenstronomy.LensModel.Profiles.constant_shift module
- lenstronomy.LensModel.Profiles.convergence module
- lenstronomy.LensModel.Profiles.coreBurkert module
- lenstronomy.LensModel.Profiles.cored_density module
- lenstronomy.LensModel.Profiles.cored_density_2 module
- lenstronomy.LensModel.Profiles.cored_density_exp module
- lenstronomy.LensModel.Profiles.cored_density_mst module
- lenstronomy.LensModel.Profiles.cored_steep_ellipsoid module
- lenstronomy.LensModel.Profiles.curved_arc_const module
- lenstronomy.LensModel.Profiles.curved_arc_sis_mst module
- lenstronomy.LensModel.Profiles.curved_arc_spp module
- lenstronomy.LensModel.Profiles.curved_arc_spt module
- lenstronomy.LensModel.Profiles.curved_arc_tan_diff module
- lenstronomy.LensModel.Profiles.dipole module
- lenstronomy.LensModel.Profiles.elliptical_density_slice module
- lenstronomy.LensModel.Profiles.epl module
- lenstronomy.LensModel.Profiles.epl_numba module
- lenstronomy.LensModel.Profiles.flexion module
- lenstronomy.LensModel.Profiles.flexionfg module
- lenstronomy.LensModel.Profiles.gauss_decomposition module
- lenstronomy.LensModel.Profiles.gaussian_ellipse_kappa module
- lenstronomy.LensModel.Profiles.gaussian_ellipse_potential module
- lenstronomy.LensModel.Profiles.gaussian_kappa module
- lenstronomy.LensModel.Profiles.gaussian_potential module
- lenstronomy.LensModel.Profiles.general_nfw module
- lenstronomy.LensModel.Profiles.hernquist module
- lenstronomy.LensModel.Profiles.hernquist_ellipse module
- lenstronomy.LensModel.Profiles.hernquist_ellipse_cse module
- lenstronomy.LensModel.Profiles.hessian module
- lenstronomy.LensModel.Profiles.interpol module
- lenstronomy.LensModel.Profiles.multi_gaussian_kappa module
- lenstronomy.LensModel.Profiles.multipole module
- lenstronomy.LensModel.Profiles.nfw module
- lenstronomy.LensModel.Profiles.nfw_ellipse module
- lenstronomy.LensModel.Profiles.nfw_ellipse_cse module
- lenstronomy.LensModel.Profiles.nfw_mass_concentration module
- lenstronomy.LensModel.Profiles.nfw_vir_trunc module
- lenstronomy.LensModel.Profiles.nie module
- lenstronomy.LensModel.Profiles.nie_potential module
- lenstronomy.LensModel.Profiles.numerical_deflections module
- lenstronomy.LensModel.Profiles.p_jaffe module
- lenstronomy.LensModel.Profiles.p_jaffe_ellipse module
- lenstronomy.LensModel.Profiles.pemd module
- lenstronomy.LensModel.Profiles.point_mass module
- lenstronomy.LensModel.Profiles.sersic module
- lenstronomy.LensModel.Profiles.sersic_ellipse_kappa module
- lenstronomy.LensModel.Profiles.sersic_ellipse_potential module
- lenstronomy.LensModel.Profiles.sersic_utils module
- lenstronomy.LensModel.Profiles.shapelet_pot_cartesian module
- lenstronomy.LensModel.Profiles.shapelet_pot_polar module
- lenstronomy.LensModel.Profiles.shear module
- lenstronomy.LensModel.Profiles.sie module
- lenstronomy.LensModel.Profiles.sis module
- lenstronomy.LensModel.Profiles.sis_truncate module
- lenstronomy.LensModel.Profiles.spemd module
- lenstronomy.LensModel.Profiles.spep module
- lenstronomy.LensModel.Profiles.splcore module
- lenstronomy.LensModel.Profiles.spp module
- lenstronomy.LensModel.Profiles.tnfw module
- lenstronomy.LensModel.Profiles.tnfw_ellipse module
- lenstronomy.LensModel.Profiles.uldm module
- Module contents
- lenstronomy.LensModel.QuadOptimizer package
- lenstronomy.LensModel.Solver package
- lenstronomy.LensModel.Util package
- Submodules
- lenstronomy.LensModel.convergence_integrals module
- lenstronomy.LensModel.lens_model module
LensModel
LensModel.__init__()
LensModel.ray_shooting()
LensModel.fermat_potential()
LensModel.arrival_time()
LensModel.potential()
LensModel.alpha()
LensModel.hessian()
LensModel.kappa()
LensModel.curl()
LensModel.gamma()
LensModel.magnification()
LensModel.flexion()
LensModel.set_static()
LensModel.set_dynamic()
LensModel.hessian_z1z2()
- lenstronomy.LensModel.lens_model_extensions module
LensModelExtensions
LensModelExtensions.__init__()
LensModelExtensions.magnification_finite_adaptive()
LensModelExtensions.magnification_finite()
LensModelExtensions.zoom_source()
LensModelExtensions.critical_curve_tiling()
LensModelExtensions.caustic_area()
LensModelExtensions.critical_curve_caustics()
LensModelExtensions.hessian_eigenvectors()
LensModelExtensions.radial_tangential_stretch()
LensModelExtensions.radial_tangential_differentials()
LensModelExtensions.curved_arc_estimate()
LensModelExtensions.tangential_average()
LensModelExtensions.curved_arc_finite_area()
- lenstronomy.LensModel.lens_param module
- lenstronomy.LensModel.profile_integrals module
- lenstronomy.LensModel.profile_list_base module
- lenstronomy.LensModel.single_plane module
- Module contents
- Subpackages
- lenstronomy.LightModel package
- Subpackages
- lenstronomy.LightModel.Profiles package
- Submodules
- lenstronomy.LightModel.Profiles.chameleon module
- lenstronomy.LightModel.Profiles.ellipsoid module
- lenstronomy.LightModel.Profiles.gaussian module
- lenstronomy.LightModel.Profiles.hernquist module
- lenstronomy.LightModel.Profiles.interpolation module
- lenstronomy.LightModel.Profiles.moffat module
- lenstronomy.LightModel.Profiles.nie module
- lenstronomy.LightModel.Profiles.p_jaffe module
- lenstronomy.LightModel.Profiles.power_law module
- lenstronomy.LightModel.Profiles.profile_base module
- lenstronomy.LightModel.Profiles.sersic module
- lenstronomy.LightModel.Profiles.shapelets module
- lenstronomy.LightModel.Profiles.shapelets_polar module
- lenstronomy.LightModel.Profiles.starlets module
- lenstronomy.LightModel.Profiles.starlets_util module
- lenstronomy.LightModel.Profiles.uniform module
- Module contents
- lenstronomy.LightModel.Profiles package
- Submodules
- lenstronomy.LightModel.light_model module
- lenstronomy.LightModel.light_param module
- Module contents
- Subpackages
- lenstronomy.Plots package
- Submodules
- lenstronomy.Plots.chain_plot module
- lenstronomy.Plots.lens_plot module
- lenstronomy.Plots.model_band_plot module
ModelBandPlot
ModelBandPlot.__init__()
ModelBandPlot.data_plot()
ModelBandPlot.model_plot()
ModelBandPlot.convergence_plot()
ModelBandPlot.substructure_plot()
ModelBandPlot.normalized_residual_plot()
ModelBandPlot.absolute_residual_plot()
ModelBandPlot.source()
ModelBandPlot.source_plot()
ModelBandPlot.error_map_source_plot()
ModelBandPlot.magnification_plot()
ModelBandPlot.deflection_plot()
ModelBandPlot.decomposition_plot()
ModelBandPlot.subtract_from_data_plot()
ModelBandPlot.plot_main()
ModelBandPlot.plot_separate()
ModelBandPlot.plot_subtract_from_data_all()
ModelBandPlot.plot_extinction_map()
- lenstronomy.Plots.model_plot module
ModelPlot
ModelPlot.__init__()
ModelPlot.reconstruction_all_bands()
ModelPlot.data_plot()
ModelPlot.model_plot()
ModelPlot.convergence_plot()
ModelPlot.substructure_plot()
ModelPlot.normalized_residual_plot()
ModelPlot.absolute_residual_plot()
ModelPlot.source_plot()
ModelPlot.error_map_source_plot()
ModelPlot.magnification_plot()
ModelPlot.deflection_plot()
ModelPlot.decomposition_plot()
ModelPlot.subtract_from_data_plot()
ModelPlot.plot_main()
ModelPlot.plot_separate()
ModelPlot.plot_subtract_from_data_all()
ModelPlot.plot_extinction_map()
ModelPlot.source()
- lenstronomy.Plots.plot_util module
- Module contents
- lenstronomy.PointSource package
- Subpackages
- Submodules
- lenstronomy.PointSource.point_source module
PointSource
PointSource.__init__()
PointSource.update_search_window()
PointSource.update_lens_model()
PointSource.delete_lens_model_cache()
PointSource.set_save_cache()
PointSource.k_list()
PointSource.source_position()
PointSource.image_position()
PointSource.point_source_list()
PointSource.num_basis()
PointSource.image_amplitude()
PointSource.source_amplitude()
PointSource.linear_response_set()
PointSource.update_linear()
PointSource.linear_param_from_kwargs()
PointSource.check_image_positions()
PointSource.set_amplitudes()
PointSource.check_positive_flux()
- lenstronomy.PointSource.point_source_cached module
- lenstronomy.PointSource.point_source_param module
- Module contents
- lenstronomy.Sampling package
- Subpackages
- Submodules
- lenstronomy.Sampling.likelihood module
LikelihoodModule
LikelihoodModule.__init__()
LikelihoodModule.kwargs_imaging
LikelihoodModule.logL()
LikelihoodModule.log_likelihood()
LikelihoodModule.check_bounds()
LikelihoodModule.num_data
LikelihoodModule.param_limits
LikelihoodModule.effective_num_data_points()
LikelihoodModule.likelihood()
LikelihoodModule.negativelogL()
- lenstronomy.Sampling.parameters module
- lenstronomy.Sampling.sampler module
- lenstronomy.Sampling.special_param module
- lenstronomy.Sampling.param_group module
- Module contents
- lenstronomy.SimulationAPI package
- Subpackages
- Submodules
- lenstronomy.SimulationAPI.data_api module
- lenstronomy.SimulationAPI.model_api module
- lenstronomy.SimulationAPI.observation_api module
- lenstronomy.SimulationAPI.observation_constructor module
- lenstronomy.SimulationAPI.point_source_variability module
- lenstronomy.SimulationAPI.sim_api module
- Module contents
- lenstronomy.Util package
- Submodules
- lenstronomy.Util.analysis_util module
- lenstronomy.Util.class_creator module
- lenstronomy.Util.constants module
- lenstronomy.Util.correlation module
- lenstronomy.Util.data_util module
- lenstronomy.Util.derivative_util module
- lenstronomy.Util.image_util module
- lenstronomy.Util.kernel_util module
de_shift_kernel()
center_kernel()
kernel_norm()
subgrid_kernel()
kernel_pixelsize_change()
cut_psf()
pixel_kernel()
kernel_average_pixel()
kernel_gaussian_grid()
kernel_gaussian()
kernel_moffat_grid()
kernel_moffat()
split_kernel()
degrade_kernel()
averaging_even_kernel()
cutout_source()
fwhm_kernel()
estimate_amp()
mge_kernel()
match_kernel_size()
- lenstronomy.Util.mask_util module
- lenstronomy.Util.multi_gauss_expansion module
- lenstronomy.Util.numba_util module
- lenstronomy.Util.param_util module
- lenstronomy.Util.prob_density module
- lenstronomy.Util.sampling_util module
- lenstronomy.Util.simulation_util module
- lenstronomy.Util.util module
merge_dicts()
isiterable()
approx_theta_E()
sort_image_index()
rotate()
map_coord2pix()
array2image()
image2array()
array2cube()
cube2array()
make_grid()
make_grid_transformed()
make_grid_with_coordtransform()
grid_from_coordinate_transform()
get_axes()
averaging()
displaceAbs()
get_distance()
compare_distance()
min_square_dist()
selectBest()
select_best()
points_on_circle()
local_minima_2d()
neighborSelect()
fwhm2sigma()
sigma2fwhm()
hyper2F2_array()
make_subgrid()
convert_bool_list()
- Module contents
- lenstronomy.Workflow package
- Submodules
- lenstronomy.Workflow.alignment_matching module
- lenstronomy.Workflow.fitting_sequence module
FittingSequence
FittingSequence.__init__()
FittingSequence.kwargs_fixed
FittingSequence.fit_sequence()
FittingSequence.best_fit()
FittingSequence.update_state()
FittingSequence.best_fit_likelihood
FittingSequence.bic
FittingSequence.param_class
FittingSequence.likelihoodModule
FittingSequence.simplex()
FittingSequence.mcmc()
FittingSequence.pso()
FittingSequence.nested_sampling()
FittingSequence.psf_iteration()
FittingSequence.align_images()
FittingSequence.flux_calibration()
FittingSequence.update_settings()
FittingSequence.set_param_value()
FittingSequence.fix_not_computed()
FittingSequence.best_fit_from_samples()
- lenstronomy.Workflow.psf_fitting module
PsfFitting
PsfFitting.__init__()
PsfFitting.calc_cornermask()
PsfFitting.update_iterative()
PsfFitting.update_psf()
PsfFitting.image_single_point_source()
PsfFitting.cutout_psf()
PsfFitting.psf_estimate_individual()
PsfFitting.point_like_source_cutouts()
PsfFitting.cutout_psf_single()
PsfFitting.combine_psf()
PsfFitting.error_map_estimate_new()
PsfFitting.error_map_estimate()
PsfFitting.mask_point_source()
- lenstronomy.Workflow.update_manager module
UpdateManager
UpdateManager.__init__()
UpdateManager.init_kwargs
UpdateManager.sigma_kwargs
UpdateManager.fixed_kwargs
UpdateManager.set_init_state()
UpdateManager.parameter_state
UpdateManager.best_fit()
UpdateManager.update_param_state()
UpdateManager.update_param_value()
UpdateManager.param_class
UpdateManager.update_kwargs_model()
UpdateManager.update_options()
UpdateManager.update_limits()
UpdateManager.update_sigmas()
UpdateManager.update_fixed()
UpdateManager.fix_image_parameters()
- Module contents