Open ankagrwl opened 8 months ago
Thank you for reporting the issue,
it would be great if someone could help fixing this
@nikosavola @sebastiangrimberg
I get the same error of @ankagrwl (AttributeError: 'NoneType' object has no attribute 'group') when I try to run Palace Full-wave driven simulation example
Unfortunately I don't have any experience with the gdsfactory plugin for Palace, so can't be of much help here. This looks to be an error independent of Palace however, and points to a potential bug in the plugin Python code used to construct the JSON configuration file for Palace.
Yes @sebastiangrimberg , I think this is related to the plugin for the construction of the JSON configuration file too. By the way, do you know an alternative to construct the JSON file?
Yes absolutely, my recommendation would be to write it by hand before generating it or modifying programmatically from a scripting language. You can base off of the examples here: https://awslabs.github.io/palace/dev/examples/examples/.
The only information you'll need from the gdsfactory plugin is the mesh (Palace reads the Gmsh format so that's fine) and the integer group numbers (these are referred to as "Attributes"
in the Palace config) assigned to various domains and boundaries in order to prescribe material properties and boundary conditions. All of that info should be in the Gmsh model and mesh that gdsfactory constructs.
Describe the bug It seems that the Palace config generator is running into an error while assigning Ports for the Interdigitated capacitor simulation
I installed Palace using Spack and it is added to the ./lib dir. There was another error in
get_scattering.py
line 365, addedstr
to fix itfilename=str(simulation_folder / filename),
The error is:
To Reproduce
What's the code to reproduce the behavior? What commands or code did you write to get the error? You can add screenshots to help explain your problem. Make sure you include the all code for others to reproduce your issue.
Expected behavior What would you like to happen?
Suggested fix How could we fix the bug?
Versions What version of gplugins and each gplugin are you using? Notice that we only may be able help you if you are using the latest version. You can find the version by running:
And update to the latest version of all plugins by running:
Or only the specific plugin you are reporting:
Then copy paste the table so that we know which version of python and plugins you are using.