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
complex indices for materials in write_sparameters_lumerical #363
Comments
Hi @Jan-David-Black , yes, that's a great idea, thank you for sharing, How does this new branch work for you? I made a new function set_material() as you suggested |
Looks Great! I am sorry I only throw stuff in here and don't just open a pull request, with everything set up properly. At some point I will find the time configure a "build environment" so that I can contribute more efficiently! |
Im also trying it on my side just pushed a fix, more docs and a demo |
What was the problem with using complex instead of a tuple of floats? |
ah understood :) |
Is your feature request related to a problem? Please describe.
Cannot use (n,k) Materials in Lumerical in the current state
Describe the solution you'd like
Enable passing a complex index to
write_sparameters_lumerical
(thrumaterial_name_to_lumerical
). This could be done by adding the following snippet to handle the complex index:Note that setting the material in lumerical depending whether a str, int or float is used is repeated twice, once for the cladding and once for the layers. It might make sense to refactor that into a function.
The text was updated successfully, but these errors were encountered: