Last modified by rangeadm on 2025/04/23 16:13

From version 8.1
edited by sndueste
on 2020/07/06 16:59
Change comment: There is no comment for this version
To version 5.1
edited by sndueste
on 2020/07/03 11:18
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -9,7 +9,7 @@
9 9  * (((
10 10  a python script
11 11  
12 -{{expand title="Click here to expand the script ..."}}
12 +{{expand}}
13 13  import numpy as np
14 14  import matplotlib.pyplot as plt
15 15  
... ... @@ -25,6 +25,7 @@
25 25  
26 26  EnAxis=np.linspace(0.,20.*CentralEnergy,num=samples)
27 27  EnInput=np.zeros(samples, dtype=np.complex64)
28 +#for i in range(samples):
28 28  EnInput=np.exp(-(EnAxis-CentralEnergy)~*~*2/2./dE~*~*2+2*np.pi*1j*np.random.random(size=samples))
29 29  En_FFT=np.fft.fft(EnInput)
30 30  TAxis=np.fft.fftfreq(samples,d=(20.*CentralEnergy)/samples)*h
... ... @@ -68,7 +68,7 @@
68 68  plt.show()
69 69  {{/expand}}
70 70  )))
71 -* a Jupyter Notebook** [[attach:GenerateSASE.ipynb]] **
72 +* the Jupyter Notebook**[[attach:SASEPulseGenV4.ipynb]]**
72 72  
73 73  
74 74  Some examples of results:
... ... @@ -85,9 +85,9 @@
85 85  
86 86  \\
87 87  
88 -\\
89 +Here are the screenshots of the script:
89 89  
90 -\\
91 +[[image:attach:partia__coherence1.png]]
91 91  
92 92  \\
93 93