matthuszagh / pyems

High-level python interface to OpenEMS with automatic mesh generation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gcpw_bypass_cap.py: TypeError: __init__() got an unexpected keyword argument 'via_gap'

biergaizi opened this issue · comments

I was trying to run the demo gcpw_bypass_cap.py, unfortunately it fails.

Traceback (most recent call last):
  File "/home/user/code/pyems/examples/gcpw_bypass_cap.py", line 33, in <module>
    Microstrip(
TypeError: __init__() got an unexpected keyword argument 'via_gap'

I looked at another working example gcpw_blocking_cap.py, and I found via-related code is commented out, including Via Gap and Via Wall. Does it mean that the via simulations in these examples are no longer compatible and cannot be used anymore in the current codebase?

I decided to remove these as parameters to Microstrip and add dedicated classes for via walls/fences in 338497a. These would need to be instantiated separately. So, yes this interface is no longer supported (and is a bug in any examples that use it), but the same functionality is still possible.