Photonics

Photonics

Topics related to Lumerical and more.

lumopt errors

TAGGED: 

    • ashish.singh
      Subscriber


      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 

       

       

    • anna.wirth-singh
      Ansys 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

Viewing 1 reply thread
  • You must be logged in to reply to this topic.