[docs]classMassSheet(MassProfile):def__init__(self,centre:Tuple[float,float]=(0.0,0.0),kappa:float=0.0):""" Represents a mass-sheet Parameters ---------- centre The (y,x) arc-second coordinates of the profile centre. kappa The magnitude of the convergence of the mass-sheet. """super().__init__(centre=centre,ell_comps=(0.0,0.0))self.kappa=kappadefconvergence_func(self,grid_radius:float)->float:return0.0@aa.grid_dec.to_arraydefconvergence_2d_from(self,grid:aa.type.Grid2DLike,**kwargs):returnnp.full(shape=grid.shape[0],fill_value=self.kappa)@aa.grid_dec.to_arraydefpotential_2d_from(self,grid:aa.type.Grid2DLike,**kwargs):returnnp.zeros(shape=grid.shape[0])@aa.grid_dec.to_vector_yx@aa.grid_dec.transform@aa.grid_dec.relocate_to_radial_minimumdefdeflections_yx_2d_from(self,grid:aa.type.Grid2DLike,**kwargs):grid_radii=self.radial_grid_from(grid=grid,**kwargs)returnself._cartesian_grid_via_radial_from(grid=grid,radius=self.kappa*grid_radii)