thliebig / openEMS-Project

openEMS is a free and open electromagnetic field solver using the FDTD method.
356 stars 65 forks source link

Issue with python/Tutorials files #14

Closed clemc98 closed 8 months ago

clemc98 commented 3 years ago

Hi, I'm experiencing an issue with 2 example files in the subfolder python/Tutorials. Bent_Patch_Antenna.py and CRLH_Extraction.py doesn't work.

For Bent_Patch_Antenna.py I have this issue :

Traceback (most recent call last):
  File "Bent_Patch_Antenna.py", line 81, in <module>
    CSX.AddBox(patch, priority=10, start=start, stop=stop, edges2grid='all') # add a box-primitive to the metal property 'patch'
AttributeError: 'CSXCAD.CSXCAD.ContinuousStructure' object has no attribute 'AddBox'

And for CRLH_Extraction.py I have this one :

Traceback (most recent call last):
  File "CRLH_Extraction.py", line 136, in <module>
    mesh_hint = CRLH.createCell()
  File "CRLH_Extraction.py", line 60, in createCell
    mesh = box.GetGridHint('x', metal_edge_res=self.edge_resolution, down_dir=False)
AttributeError: 'CSXCAD.CSPrimitives.CSPrimBox' object has no attribute 'GetGridHint'
thliebig commented 1 year ago

This issue should have been opened at the CSXCAD submodule, but I agree that the git layout is difficult to understand. The first issue does not exist like this anymore. The second is still open. I'm not sure why... I will have a look

thliebig commented 8 months ago

As far as I see it the issues do not exist anymore. Reopen if this is not the case