Skip to content

Commit

Permalink
fix doc error
Browse files Browse the repository at this point in the history
  • Loading branch information
huixingjian committed Oct 16, 2024
1 parent ed7eb7e commit efa4173
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
8 changes: 7 additions & 1 deletion lasy/profiles/gaussian_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,18 +63,24 @@ class GaussianProfile(CombinedLongitudinalTransverseProfile):
beta : float (in second), optional
The angular dispersion parameterized by
.. math::
\beta = \frac{d\theta_0}{d\omega}
Here :math:`\theta_0` is the propagation angle of this component.
phi2 : float (in second^2), optional (default '0')
The group-delay dispertion parameterized by
.. math::
\phi^{(2)} = \frac{dt}{d\omega}
zeta : float (in meter * second) optional (defalut '0')
zeta : float (in meter * second) optional (default '0')
The spatio-chirp parameterized by
.. math::
\zeta = \frac{x_0}{d\omega}
Here :math:`x_0` is the beam center position.
Expand Down
3 changes: 2 additions & 1 deletion lasy/profiles/longitudinal/gaussian_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ def __init__(self, wavelength, tau, t_peak, cep_phase=0, beta=0, phi2=0, zeta=0,
self.zeta = zeta
self.w0 = w0
self.stc_theta = stc_theta
self.k0 = 2.0 * scc.pi/wavelength
if beta:
assert (w0 is not None and z_foc is not None),\
"Both w0 and z_foc should be specified if angular dispersion beta is not 0"
Expand All @@ -83,7 +84,7 @@ def __init__(self, wavelength, tau, t_peak, cep_phase=0, beta=0, phi2=0, zeta=0,
wavelength is not None
), "You need to pass the wavelength, when `z_foc` is non-zero."
self.z_foc_over_zr = z_foc * wavelength / (np.pi * w0**2)
self.k0 = 2.0 * scc.pi/wavelength



def evaluate(self, t, x=None, y=None):
Expand Down

0 comments on commit efa4173

Please sign in to comment.