Skip to content

Commit

Permalink
Merge pull request #195 from Jammy2211/feature/operate_deflections_api
Browse files Browse the repository at this point in the history
feature/operate deflections api
  • Loading branch information
rhayes777 authored Dec 16, 2024
2 parents 85c8ca8 + 6b94371 commit be0817c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions autogalaxy/operate/deflections.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,20 @@ class OperateDeflections:
The function which returns the mass object's 2D deflection angles.
"""

@property
def plane_redshifts(self) -> List[float]:
"""
Imitating tracer API but with no planes
"""
return []

def deflections_between_planes_from(self, grid, plane_i: int, plane_j: int):
"""
Assumes a simple OperateDeflections object (e.g. mass profile) that only has
a single plane of deflections
"""
return self.deflections_yx_2d_from(grid=grid)

def deflections_yx_2d_from(self, grid: aa.type.Grid2DLike, **kwargs):
raise NotImplementedError

Expand Down

0 comments on commit be0817c

Please sign in to comment.