Jammy2211 / PyAutoLens

PyAutoLens: Open Source Strong Gravitational Lensing
https://pyautolens.readthedocs.io/
MIT License
162 stars 32 forks source link

feature/magnification #301

Closed rhayes777 closed 3 weeks ago

rhayes777 commented 3 weeks ago

Compute magnification of a shape in the source plane


from autoarray.structures.triangles.shape import Circle
from autolens.point.solver.shape_solver import ShapeSolver

solver = ShapeSolver.for_grid(
    grid=grid,
    pixel_scale_precision=0.01,
)
magnification = solver.find_magnification(
    tracer=tracer,
    shape=Circle(
        0.0,
        0.0,
        radius=0.01,
    ),
)