code: def deflections_from_grid(self, grid):
          
          deflection_y = -np.multiply(self.magnitude, grid[:, 0])
          deflection_x = np.multiply(self.magnitude, grid[:, 1])
          return self.rotate_grid_from_profile(np.vstack((deflection_y, deflection_x)).T)
docs: Calculate the deflection angles at a given set of arc-second gridded coordinates.
  
          Parameters
          ----------
          grid : grids.RegularGrid
              The grid of (y,x) arc-second coordinates the deflection angles are computed on.