diff --git a/lasy/profiles/combined_profile.py b/lasy/profiles/combined_profile.py index ababc196..eb4b48d6 100644 --- a/lasy/profiles/combined_profile.py +++ b/lasy/profiles/combined_profile.py @@ -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 diff --git a/lasy/profiles/gaussian_profile.py b/lasy/profiles/gaussian_profile.py index 8d0bdb78..9bdf8d55 100644 --- a/lasy/profiles/gaussian_profile.py +++ b/lasy/profiles/gaussian_profile.py @@ -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), )