Skip to content

feature/magnification - #301

Merged
Jammy2211 merged 4 commits into
mainfrom
feature/magnification
Sep 14, 2024
Merged

feature/magnification#301
Jammy2211 merged 4 commits into
mainfrom
feature/magnification

Conversation

@rhayes777

@rhayes777 rhayes777 commented Sep 13, 2024

Copy link
Copy Markdown
Collaborator

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,
    ),
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants