Skip to content

Commit

Permalink
fix syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
huixingjian committed Oct 16, 2024
1 parent 4752ad1 commit d2732b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lasy/profiles/longitudinal/gaussian_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ def __init__(
self.zeta = zeta
self.w0 = w0
self.stc_theta = stc_theta

if z_foc == 0:
self.z_foc_over_zr = 0
else:
Expand Down
2 changes: 1 addition & 1 deletion lasy/profiles/longitudinal/longitudinal_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class LongitudinalProfile(object):
def __init__(self, wavelength):
self.lambda0 = wavelength
self.omega0 = 2 * pi * c / self.lambda0
self.k0 = 2.0 * scc.pi / wavelength
self.k0 = 2.0 * pi / wavelength
def evaluate(self, t):
"""
Return the longitudinal envelope.
Expand Down

0 comments on commit d2732b3

Please sign in to comment.