TAGGED: lumopt
-
-
October 30, 2024 at 1:15 pmashish.singhSubscriber
CONFIGURATION FILE {'root': 'C:\\\\Program Files\\\\Lumerical\\\\v242\\\\api\\\\python', 'lumapi': 'C:\\\\Program Files\\\\Lumerical\\\\v242\\\\api\\\\python'}
Traceback (most recent call last):Â File ~\AppData\Local\anaconda3\Lib\site-packages\spyder_kernels\py3compat.py:356 in compat_exec
  exec(code, globals, locals) File c:\users\ge83sax\desktop\optimization\opt.py:90
  geometry = FunctionDefinedPolygon(TypeError: FunctionDefinedPolygon.__init__() got an unexpected keyword argument 'unfold_symmetry'
please help me outÂÂ
Â
-
October 30, 2024 at 5:20 pmanna.wirth-singhAnsys Employee
Hi Ashish,
I'm sorry to hear you are having issues with lumopt. Can you please provide some more information about the line geometry = FunctionDefinedPolygon(arguments) ? I am not able to see the function arguments in the post, so perhaps you can paste the code in plain text. That will help to diagnose the problem.Â
Here is an example of how a geometry can be defined:
geometry = FunctionDefinedPolygon(func = your_function,
                 initial_params = initial_params,
                 bounds = bounds,
                 z = 0.0,
                 depth = depth,
                 eps_out = eps_out,
                 eps_in = eps_in,
                 dx = 1.0e-11)Â
Where 'your_function' is a function you have written to return the points in a polygon, ordered in a counter clockwise direction.
I do not see 'unfold_symmetry' as one of the keywords of FunctionDefinedPolygon, so that is likely where the error is coming from. The available keyword parameters are listed here: Geometries — LumOpt documentation
Best,
Anna
-
- You must be logged in to reply to this topic.
-
791
-
427
-
265
-
201
-
180
© 2024 Copyright ANSYS, Inc. All rights reserved.