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 have made a recent post about an error I was getting after running mp.get_GDSII_prisms. To summarize, I took this script (which works fine) and just tried to add a user-defined function in order to make the index of the coupler vary. As suggested in my previous post, I tested with a simple function :
This is the only change I made in the script. But it gives me this error : OverflowError: in method 'get_GDSII_prisms', argument 3 of type 'int'
I don't really understand what it means. Why is this an OverflowError, and why it is on argument 3 when I changed argument 1. I looked for this kind of error on the internet but I didn't find anything. Someone mentioned that this could be due to Python3, but I tried on Python2 and it didn't change anything. I just noticed that when I gave an argument to test_material_function, the error disappear (but then, I don't have the argument of position anymore).
Has anyone had a similar error ? If so, is there another way to import the geometry from a GDS file, and modify its index ?
Thank you for your help!
The text was updated successfully, but these errors were encountered:
Hi,
I have made a recent post about an error I was getting after running mp.get_GDSII_prisms. To summarize, I took this script (which works fine) and just tried to add a user-defined function in order to make the index of the coupler vary. As suggested in my previous post, I tested with a simple function :
def test_material_function(p): return mp.Medium(index=2)
And this is how I called mp.get_GDSII_prisms :
upper_branch = mp.get_GDSII_prisms(test_material_function, gdsII_file, UPPER_BRANCH_LAYER, si_zmin, si_zmax)
This is the only change I made in the script. But it gives me this error :
OverflowError: in method 'get_GDSII_prisms', argument 3 of type 'int'
I don't really understand what it means. Why is this an OverflowError, and why it is on argument 3 when I changed argument 1. I looked for this kind of error on the internet but I didn't find anything. Someone mentioned that this could be due to Python3, but I tried on Python2 and it didn't change anything. I just noticed that when I gave an argument to test_material_function, the error disappear (but then, I don't have the argument of position anymore).
Has anyone had a similar error ? If so, is there another way to import the geometry from a GDS file, and modify its index ?
Thank you for your help!
The text was updated successfully, but these errors were encountered: