We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
I am having a hard time to find out how to use a gain spectrum in the simulation. I use
fiber_specs = { "name": "A2901M2F1C020R02", "dispersion_format": "D", "nonlinear_parameter": Gamma, "dispersion_x_units": "nm", "dispersion_y_units": "ps/nm/km", "dispersion_data": Disp_Data, "is_gain": True, "gain_spectrum": ErGeSi, "gain_x_units": "nm" }
with some read np.arrays Disp_Data and ErGeSi. followed lateron by
fiber1 = pynlo.media.fibers.fiber.FiberInstance() fiber1.fiberspecs = fiber_specs
This leads to KeyError: 'gain_x_data'
Not clear how to proceed. An example would help. What units should the gain spectrum have?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi,
I am having a hard time to find out how to use a gain spectrum in the simulation. I use
fiber_specs = {
"name": "A2901M2F1C020R02",
"dispersion_format": "D",
"nonlinear_parameter": Gamma,
"dispersion_x_units": "nm",
"dispersion_y_units": "ps/nm/km",
"dispersion_data": Disp_Data,
"is_gain": True,
"gain_spectrum": ErGeSi,
"gain_x_units": "nm"
}
with some read np.arrays Disp_Data and ErGeSi.
followed lateron by
fiber1 = pynlo.media.fibers.fiber.FiberInstance()
fiber1.fiberspecs = fiber_specs
This leads to KeyError: 'gain_x_data'
Not clear how to proceed. An example would help.
What units should the gain spectrum have?
The text was updated successfully, but these errors were encountered: