Skip to content

Commit

Permalink
fix delete single pin rlc (#4207)
Browse files Browse the repository at this point in the history
* fix delete single pin rlc if model type is s param

* res value
  • Loading branch information
gmalinve authored Feb 9, 2024
1 parent 6802d9f commit 55a89f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyaedt/edb_core/components.py
Original file line number Diff line number Diff line change
Expand Up @@ -1768,7 +1768,8 @@ def delete_single_pin_rlc(self, deactivate_only=False):
if val.numpins < 2 and val.type in ["Resistor", "Capacitor", "Inductor"]:
if deactivate_only:
val.is_enabled = False
val.model_type = "RLC"
if val.model_type in ["SParameterModel", "SPICEModel"]:
val.assign_rlc_model(res=1e6)
else:
val.edbcomponent.Delete()
deleted_comps.append(comp)
Expand Down

0 comments on commit 55a89f7

Please sign in to comment.