Small improvements

This commit is contained in:
Benoît Sierro
2023-06-28 14:04:53 +02:00
parent 8e41c4aa17
commit 514dc4d99f
12 changed files with 187 additions and 65 deletions

View File

@@ -1,3 +1,9 @@
"""
May 2023
Testing the new solver / operators structure
using parameters from the 2022 Optica paper
"""
import matplotlib.pyplot as plt
import numpy as np
from scipy.interpolate import interp1d
@@ -19,11 +25,12 @@ def main():
#
# plt.plot(params.w, params.linear_operator(0).imag)
# plt.show()
breakpoint()
res = sol.integrate(params.spec_0, params.length, params.linear_operator, params.nonlinear_operator)
res = sol.integrate(
params.spec_0, params.length, params.linear_operator, params.nonlinear_operator
)
new_z = np.linspace(0, params.length, 256)