lime/optics.py
def spectrum(self, omega):
        """
        Fourier transform of the Gaussian pulse
        """
        omega0 = self.omegac
        T = self.tau
        A0 = self.amplitude
        beta = self.beta

#        if beta is None:
#            return A0 * sigma * np.sqrt(2.*np.pi) * np.exp(-(omega-omega0)**2 * sigma**2/2.)
#        else:
        a = 0.5/T**2 + 1j * beta * omega0/T
        return A0 * np.sqrt(np.pi/a) * np.exp(-(omega - omega0)**2/4./a)

        Fourier transform of the Gaussian pulse
        
Fourier transform of the Gaussian pulse
Fourier transform of the Gaussian pulse
def spectrum(self, omega):
        omega0 = self.omegac
        T = self.tau
        A0 = self.amplitude
        beta = self.beta
        a = 0.5/T**2 + 1j * beta * omega0/T
        return A0 * np.sqrt(np.pi/a) * np.exp(-(omega - omega0)**2/4./a)
def spectrum ( self , omega ) : omega0 = self . omegac T = self . tau A0 = self . amplitude beta = self . beta a = 0.5 / T ** 2 + 1j * beta * omega0 / T return A0 * np . sqrt ( np . pi / a ) * np . exp ( - ( omega - omega0 ) ** 2 / 4. / a )
Fourier transform of the Gaussian pulse
Fourier transform of the Gaussian pulse
"""
        Fourier transform of the Gaussian pulse
        """ #        if beta is None: #            return A0 * sigma * np.sqrt(2.*np.pi) * np.exp(-(omega-omega0)**2 * sigma**2/2.) #        else:
self
omega