Skip to content

Commit

Permalink
add docstring to _set_farfield
Browse files Browse the repository at this point in the history
  • Loading branch information
rjmoerland committed Nov 4, 2024
1 parent e57732d commit 3e36aa1
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/lumicks/pyoptics/trapping/plane_wave_field_calculation.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@


def _set_farfield(theta: float, phi: float, polarization: Tuple[float, float], k: float):
# Create a FarFieldData object that contains a single pixel == single
# plane wave with angles theta and phi and with amplitude and
# polarization (E_theta, E_phi) given by `polarization`
"""Create a FarFieldData object that contains a single pixel (= single
plane wave) with angles `theta` and `phi`, and with amplitude and polarization (E_theta, E_phi)
given by `polarization`"""
cos_theta = np.atleast_2d(np.cos(theta))
sin_theta = np.atleast_2d(np.sin(theta))
cos_phi = np.atleast_2d(np.cos(phi))
Expand Down Expand Up @@ -51,9 +51,6 @@ def _plane_wave_field_factory(
local_coordinates: LocalBeadCoordinates,
internal: bool,
):

n_orders = n_orders

local_coordinates = (
InternalBeadCoordinates(local_coordinates)
if internal
Expand Down

0 comments on commit 3e36aa1

Please sign in to comment.