You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am a new user of Meep. I followed the tutorial on GDSII Import and based my script on examples/coupler.py.
I would like to create a gradual index variation within the two branches of my coupler. That is why I tried to put a function as first argument of mp.get_GDSII_prisms. However, this doesn't seem to work and I have the error "OverflowError: in method 'get_GDSII_prisms', argument 3 of type 'int'"
I thought that any function that accepts a mp.Medium instance could also take a user-defined function. How can I create such a variation of the index ?
Thank you in advance
The text was updated successfully, but these errors were encountered:
(Or maybe you have some unrelated bug in how you are calling it; it's impossible to say for sure without seeing example code illustrating the problem.)
To make sure you aren't making some other unrelated error, I would recommend that you try running the script from the GDSII-import tutorial, but pass test_material_function instead of silicon to mp.get_GDSII_prisms.
Thank you for your answer. I tried to add test_material_function directly in the script from the GDSII-import tutorial, but I still have the same issue...
Hello,
I am a new user of Meep. I followed the tutorial on GDSII Import and based my script on examples/coupler.py.
I would like to create a gradual index variation within the two branches of my coupler. That is why I tried to put a function as first argument of mp.get_GDSII_prisms. However, this doesn't seem to work and I have the error "OverflowError: in method 'get_GDSII_prisms', argument 3 of type 'int'"
I thought that any function that accepts a mp.Medium instance could also take a user-defined function. How can I create such a variation of the index ?
Thank you in advance
The text was updated successfully, but these errors were encountered: