Skip to content

Commit b41ef18

Browse files
committed
fix examples
1 parent 5c9ac55 commit b41ef18

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+80
-87
lines changed

examples/low_level_interface/MI_modeAvg_env.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using Luna
1+
using Luna, PythonPlot
22

33
a = 15e-6
44
gas = :Ar
@@ -40,7 +40,7 @@ output = Output.MemoryOutput(0, grid.zmax, 201, statsfun)
4040
Luna.run(Eω, grid, linop, transform, FT, output)
4141

4242
##
43-
Plotting.pygui(true)
43+
4444
Plotting.stats(output)
4545
Plotting.prop_2D(output; trange=(-1e-12, 1e-12), λrange=(220e-9, 2000e-9))
4646
Plotting.time_1D(output; trange=(-1e-12, 1e-12))

examples/low_level_interface/PPT_ionisation_rate/PPT_ionisation_rate.jl

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
using Luna
1+
using Luna, PythonPlot
22
import DelimitedFiles: readdlm
3-
import PyPlot: plt, pygui
43
import Printf: @sprintf
54
import GSL: hypergeom
65
import SpecialFunctions: dawson, gamma

examples/low_level_interface/Raman/Raman_modeAvg.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using Luna
1+
using Luna, PythonPlot
22

33
a = 13e-6
44
gas = :H2
@@ -35,7 +35,7 @@ output = Output.MemoryOutput(0, grid.zmax, 201, statsfun)
3535
Luna.run(Eω, grid, linop, transform, FT, output)
3636

3737
##
38-
Plotting.pygui(true)
38+
3939
Plotting.stats(output)
4040
Plotting.prop_2D(output)
4141
Plotting.time_1D(output, range(0,flength,length=5), trange=(-0.5e-12, 2e-12))

examples/low_level_interface/Raman/Raman_modeAvg_env.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using Luna
1+
using Luna, PythonPlot
22

33
a = 13e-6
44
gas = :H2
@@ -33,7 +33,7 @@ output = Output.MemoryOutput(0, grid.zmax, 201, statsfun)
3333
Luna.run(Eω, grid, linop, transform, FT, output)
3434

3535
##
36-
Plotting.pygui(true)
36+
3737
Plotting.stats(output)
3838
Plotting.prop_2D(output)
3939
Plotting.time_1D(output, range(0,flength,length=5), trange=(-0.5e-12, 2e-12))

examples/low_level_interface/Raman/Raman_modeAvg_noTHG.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using Luna
1+
using Luna, PythonPlot
22

33
a = 13e-6
44
gas = :H2
@@ -34,7 +34,7 @@ output = Output.MemoryOutput(0, grid.zmax, 201, statsfun)
3434
Luna.run(Eω, grid, linop, transform, FT, output)
3535

3636
##
37-
Plotting.pygui(true)
37+
3838
Plotting.stats(output)
3939
Plotting.prop_2D(output)
4040
Plotting.time_1D(output, range(0,flength,length=5), trange=(-0.5e-12, 2e-12))

examples/low_level_interface/SFA_gauss.jl

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import FFTW
22
import Luna: SFA, Tools, Grid, Maths, PhysData, Ionisation
33
import Luna.PhysData: wlfreq
4-
import PythonPlot: pyplot, pygui
5-
pygui(true)
4+
import PythonPlot: pyplot
65

76
τfwhm = 30e-15
87
λ0 = 800e-9

examples/low_level_interface/arpcf_modeAvg.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using Luna
1+
using Luna, PythonPlot
22

33
a = 13e-6
44
gas = :Ar
@@ -42,7 +42,7 @@ output = Output.MemoryOutput(0, grid.zmax, 201, statsfun)
4242
Luna.run(Eω, grid, linop, transform, FT, output)
4343

4444
##
45-
Plotting.pygui(true)
45+
4646
Plotting.stats(output)
4747
Plotting.prop_2D(output)
4848
Plotting.time_1D(output)

examples/low_level_interface/basic_modal.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using Luna
1+
using Luna, PythonPlot
22

33
a = 13e-6
44
gas = :Ar
@@ -40,7 +40,7 @@ output = Output.MemoryOutput(0, grid.zmax, 201, statsfun)
4040
Luna.run(Eω, grid, linop, transform, FT, output, status_period=5)
4141

4242
##
43-
Plotting.pygui(true)
43+
4444
Plotting.stats(output)
4545
Plotting.prop_2D(output)
4646
Plotting.prop_2D(output; bandpass=(150e-9, 300e-9), modes=:sum)

examples/low_level_interface/basic_modal_env.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using Luna
1+
using Luna, PythonPlot
22

33
a = 13e-6
44
gas = :Ar
@@ -40,7 +40,7 @@ output = Output.MemoryOutput(0, grid.zmax, 201, statsfun)
4040
Luna.run(Eω, grid, linop, transform, FT, output)
4141

4242
##
43-
Plotting.pygui(true)
43+
4444
Plotting.stats(output)
4545
Plotting.prop_2D(output)
4646
Plotting.time_1D(output)

examples/low_level_interface/basic_modeAvg.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using Luna
1+
using Luna, PythonPlot
22

33
a = 13e-6
44
gas = :Ar
@@ -41,7 +41,7 @@ output = Output.MemoryOutput(0, grid.zmax, 201, statsfun)
4141
Luna.run(Eω, grid, linop, transform, FT, output)
4242

4343
##
44-
Plotting.pygui(true)
44+
4545
Plotting.stats(output)
4646
Plotting.prop_2D(output)
4747
Plotting.time_1D(output, [5e-2, 10e-2, 11e-2])

examples/low_level_interface/basic_modeAvg_env.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using Luna
1+
using Luna, PythonPlot
22

33
a = 13e-6
44
gas = :Ar
@@ -33,7 +33,7 @@ output = Output.MemoryOutput(0, grid.zmax, 201, statsfun)
3333
Luna.run(Eω, grid, linop, transform, FT, output)
3434

3535
##
36-
Plotting.pygui(true)
36+
3737
Plotting.stats(output)
3838
Plotting.prop_2D(output)
3939
Plotting.time_1D(output, [5e-2, 10e-2, 11e-2])

examples/low_level_interface/basic_modeAvg_env_THG.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using Luna
1+
using Luna, PythonPlot
22

33
a = 13e-6
44
gas = :Ar

examples/low_level_interface/basic_modeAvg_field_noTHG.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using Luna
1+
using Luna, PythonPlot
22

33
a = 13e-6
44
gas = :Ar
@@ -39,7 +39,7 @@ output = Output.MemoryOutput(0, grid.zmax, 201, statsfun)
3939
Luna.run(Eω, grid, linop, transform, FT, output)
4040

4141
##
42-
Plotting.pygui(true)
42+
4343
Plotting.stats(output)
4444
Plotting.prop_2D(output)
4545
Plotting.time_1D(output)

examples/low_level_interface/full_modal/basic_modal_full.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using Luna
1+
using Luna, PythonPlot
22

33
a = 13e-6
44
gas = :Ar
@@ -41,6 +41,6 @@ linop = LinearOps.make_const_linop(grid, modes, λ0)
4141

4242
Luna.run(Eω, grid, linop, transform, FT, output)
4343

44-
Plotting.pygui(true)
44+
4545
Plotting.stats(output)
4646
Plotting.prop_2D(output)

examples/low_level_interface/full_modal/basic_modal_full_bothpolarisations.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using Luna
1+
using Luna, PythonPlot
22

33
a = 13e-6
44
gas = :Ar
@@ -41,6 +41,6 @@ linop = LinearOps.make_const_linop(grid, modes, λ0)
4141

4242
Luna.run(Eω, grid, linop, transform, FT, output)
4343

44-
Plotting.pygui(true)
44+
4545
Plotting.stats(output)
4646
Plotting.prop_2D(output)

examples/low_level_interface/gnlse/simplescg_modeAvg.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# supercontinuum from simple GNLSE parameters
22
# Fig.3 of Dudley et. al, RMP 78 1135 (2006)
33

4-
using Luna
4+
using Luna, PythonPlot
55

66
βs = [0.0, 0.0, -1.1830e-26, 8.1038e-41, -9.5205e-56, 2.0737e-70, -5.3943e-85, 1.3486e-99, -2.5495e-114, 3.0524e-129, -1.7140e-144]
77
γ = 0.11
@@ -33,7 +33,7 @@ output = Output.MemoryOutput(0, grid.zmax, 201)
3333
Luna.run(Eω, grid, linop, transform, FT, output)
3434

3535
##
36-
Plotting.pygui(true)
36+
3737
#Plotting.stats(output)
3838
#Plotting.prop_2D(output, :λ, dBmin=-40.0, λrange=(400e-9, 1300e-9), trange=(-1e-12, 5e-12))
3939
#Plotting.time_1D(output, range(0.0, 1.0, length=5).*flength, trange=(-1e-12, 5e-12))

examples/low_level_interface/gnlse/simplescg_modeAvg_env.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# supercontinuum from simple GNLSE parameters
22
# Fig.3 of Dudley et. al, RMP 78 1135 (2006)
33

4-
using Luna
4+
using Luna, PythonPlot
55

66
βs = [0.0, 0.0, -1.1830e-26, 8.1038e-41, -9.5205e-56, 2.0737e-70, -5.3943e-85, 1.3486e-99, -2.5495e-114, 3.0524e-129, -1.7140e-144]
77
γ = 0.11
@@ -33,7 +33,7 @@ output = Output.MemoryOutput(0, grid.zmax, 201)
3333
Luna.run(Eω, grid, linop, transform, FT, output)
3434

3535
##
36-
Plotting.pygui(true)
36+
3737
#Plotting.stats(output)
3838
Plotting.prop_2D(output, , dBmin=-40.0, λrange=(400e-9, 1300e-9), trange=(-1e-12, 5e-12))
3939
#Plotting.time_1D(output, [0.0, 2.5, 5.0], trange=(-5e-12, 5e-12))

examples/low_level_interface/gradients/gradient_modal.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using Luna
1+
using Luna, PythonPlot
22

33
a = 13e-6
44
gas = :Ar
@@ -37,7 +37,7 @@ output = Output.MemoryOutput(0, grid.zmax, 201, statsfun)
3737

3838
Luna.run(Eω, grid, linop, transform, FT, output)
3939

40-
Plotting.pygui(true)
40+
4141
Plotting.stats(output)
4242
Plotting.prop_2D(output)
4343
Plotting.prop_2D(output, bandpass=(150e-9, 300e-9))

examples/low_level_interface/gradients/gradient_modal_env.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using Luna
1+
using Luna, PythonPlot
22

33
a = 13e-6
44
gas = :Ar
@@ -35,7 +35,7 @@ output = Output.MemoryOutput(0, grid.zmax, 201, statsfun)
3535
Luna.run(Eω, grid, linop, transform, FT, output)
3636

3737
##
38-
Plotting.pygui(true)
38+
3939
Plotting.stats(output)
4040
Plotting.prop_2D(output)
4141
Plotting.prop_2D(output, bandpass=(150e-9, 300e-9))

examples/low_level_interface/gradients/gradient_modeAvg.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using Luna
1+
using Luna, PythonPlot
22

33
a = 13e-6
44
gas = :Ar
@@ -38,6 +38,6 @@ output = Output.MemoryOutput(0, grid.zmax, 201, statsfun)
3838
Luna.run(Eω, grid, linop!, transform, FT, output)
3939

4040
##
41-
Plotting.pygui(true)
41+
4242
Plotting.stats(output)
4343
Plotting.prop_2D(output)

examples/low_level_interface/gradients/gradient_modeAvg_env.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using Luna
1+
using Luna, PythonPlot
22

33
a = 13e-6
44
gas = :Ar
@@ -36,6 +36,6 @@ output = Output.MemoryOutput(0, grid.zmax, 201, statsfun)
3636
Luna.run(Eω, grid, linop!, transform, FT, output)
3737

3838
##
39-
Plotting.pygui(true)
39+
4040
Plotting.stats(output)
4141
Plotting.prop_2D(output)

examples/low_level_interface/mixtures/mixture_modeAvg.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using Luna
1+
using Luna, PythonPlot
22

33
a = 13e-6
44
gas = :Ar
@@ -43,7 +43,7 @@ output = Output.MemoryOutput(0, grid.zmax, 201, statsfun) # statsfun
4343
Luna.run(Eω, grid, linop, transform, FT, output)
4444

4545
##
46-
Plotting.pygui(true)
46+
4747
Plotting.stats(output)
4848
Plotting.prop_2D(output)
4949
Plotting.time_1D(output, [5e-2, 10e-2, 11e-2])

examples/low_level_interface/plasma_ssfbs_modeAvg.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using Luna
1+
using Luna, PythonPlot
22

33
a = 9e-6
44
gas = :Ar
@@ -39,7 +39,7 @@ output = Output.MemoryOutput(0, grid.zmax, 201, statsfun)
3939

4040
Luna.run(Eω, grid, linop, transform, FT, output)
4141

42-
Plotting.pygui(true)
42+
4343
Plotting.stats(output)
4444
Plotting.prop_2D(output, , λrange=(500e-9,1800e-9), trange=(-500e-15,100e-15), dBmin=-30.0)
4545
Plotting.time_1D(output, [5e-2, 15e-2, 25e-2])

examples/low_level_interface/polarisation/elliptical.jl

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
using Luna
1+
using Luna, PythonPlot
22
import Luna.PhysData: wlfreq
33
import Logging
44
import FFTW
55
import NumericalIntegration: integrate, SimpsonEven
66
import LinearAlgebra: mul!, ldiv!
77
Logging.disable_logging(Logging.BelowMinLevel)
88

9-
import PythonPlot: pygui, pyplot
10-
119
a = 225e-6
1210
gas = :Ar
1311
pres = 0.4

examples/low_level_interface/polarisation/elliptical_env.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using Luna
1+
using Luna, PythonPlot
22
import StaticArrays: SMatrix, SVector
33
import LinearAlgebra: mul!, ldiv!
44

examples/low_level_interface/polarisation/modal_nonvector_plasma.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using Luna
1+
using Luna, PythonPlot
22

33
a = 9e-6
44
gas = :Ar
@@ -40,7 +40,7 @@ linop = LinearOps.make_const_linop(grid, modes, λ0)
4040

4141
Luna.run(Eω, grid, linop, transform, FT, output)
4242

43-
Plotting.pygui(true)
43+
4444
Plotting.stats(output)
4545
Plotting.prop_2D(output, , λrange=(500e-9,1800e-9), trange=(-500e-15,100e-15), dBmin=-30.0)
4646

examples/low_level_interface/polarisation/modal_vector_plasma.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using Luna
1+
using Luna, PythonPlot
22

33
a = 9e-6
44
gas = :Ar
@@ -40,7 +40,7 @@ linop = LinearOps.make_const_linop(grid, modes, λ0)
4040

4141
Luna.run(Eω, grid, linop, transform, FT, output)
4242

43-
Plotting.pygui(true)
43+
4444
Plotting.stats(output)
4545
Plotting.prop_2D(output, , λrange=(500e-9,1800e-9), trange=(-500e-15,100e-15), dBmin=-30.0)
4646

examples/low_level_interface/polarisation/modal_vector_plasma_45deg.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using Luna
1+
using Luna, PythonPlot
22

33
a = 9e-6
44
gas = :Ar
@@ -42,7 +42,7 @@ linop = LinearOps.make_const_linop(grid, modes, λ0)
4242

4343
Luna.run(Eω, grid, linop, transform, FT, output)
4444

45-
Plotting.pygui(true)
45+
4646
Plotting.stats(output)
4747
Plotting.prop_2D(output, , λrange=(500e-9,1800e-9), trange=(-500e-15,100e-15), dBmin=-30.0)
4848
Plotting.time_1D(output, [5e-2, 15e-2, 25e-2])

0 commit comments

Comments
 (0)