Skip to content

Commit

Permalink
pass the parameters to GaussianProfile
Browse files Browse the repository at this point in the history
  • Loading branch information
huixingjian committed Oct 16, 2024
1 parent d90e2ca commit 498cf62
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lasy/profiles/combined_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,5 @@ def evaluate(self, x, y, t):
Contains the value of the envelope at the specified points
This array has the same shape as the arrays x, y, t
"""
envelope = self.trans_profile.evaluate(x, y) * self.long_profile.evaluate(t)
envelope = self.trans_profile.evaluate(x, y) * self.long_profile.evaluate(t, x, y)
return envelope
2 changes: 1 addition & 1 deletion lasy/profiles/gaussian_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,6 @@ def __init__(
wavelength,
pol,
laser_energy,
GaussianLongitudinalProfile(wavelength, tau, t_peak, cep_phase, beta=0, phi2=0, zeta=0, stc_theta=0,w0=None, z_foc=0),
GaussianLongitudinalProfile(wavelength, tau, t_peak, cep_phase, beta=beta, phi2=phi2, zeta=zeta, stc_theta=0, w0=w0, z_foc=z_foc),
GaussianTransverseProfile(w0, z_foc, wavelength),
)

0 comments on commit 498cf62

Please sign in to comment.