Photonics

Photonics

Topics related to Lumerical and more.

Doubt regarding CML “generate_template_xml.py”

    • gopikrishnangm
      Subscriber

      Hi Lumerical

      I was going through the beginners tutorial regarding building custom CML (https://support.lumerical.com/hc/en-us/articles/360037141714).


      In step 4 " updating the XML data file using generate_template_xml.py" after changing the python script when I run the script I get an error message "line 46, in   if globalgroup_list:

      NameError: name 'globalgroup_list' is not defined". The instructions in step 4 ask to remove the statistical information part of the python code and so there is no globalgroup_list variable to execute the if statement under the "# do not modify" set of commands.


      Could you let me know how this can be fixed?

    • Kyle
      Ansys Employee

      I believe there may be a mistake in this script, I will look into this and get back to you. To fix this, you can add empty globalgroup_list, corrgroup_list, and corner_list lists to the beginning of the script, so these if statements evaluate to false:
      globalgroup_list = []
      corrgroup_list = []
      corner_list = []
    • gopikrishnangm
      Subscriber
      Hi kjohnson
      thank you for the solution!
      Gopi
Viewing 2 reply threads
  • The topic ‘Doubt regarding CML “generate_template_xml.py”’ is closed to new replies.