QuanticParis / HFSSdrawpy

Draw HFSS designs using python
MIT License
17 stars 23 forks source link

Body does not have an attribute is_hfss #44

Open StevenTouzard opened 3 years ago

StevenTouzard commented 3 years ago

A lot of methods in drawpylib require the Body from drawpy to have an attribute is_hfss. However, Modeler is not initialized with is_hfss. A lot of scripts I tried do:

pm = Modeler('hfss') pm.is_hfss = True chip = Body(pm, 'chip')

In this case chip doesn't inherit is_hfss which causes problems later. I can workaround by defining is_hfss for each Body but it doesn't seem like that was the goal.

Should we just initialize the Modeler with this attribute ?

rlescanne commented 3 years ago

This is correct. This property is a reminiscent feature from the past version of the code. We need to modify HFSSdrawpy so that :