Skip to content
New issue

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

How to appropriately configure and read gain spectrum #60

Open
mlmalesic opened this issue Mar 28, 2022 · 0 comments
Open

How to appropriately configure and read gain spectrum #60

mlmalesic opened this issue Mar 28, 2022 · 0 comments

Comments

@mlmalesic
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant