Skip to content

Commit

Permalink
FIX: setup types (#854)
Browse files Browse the repository at this point in the history
* FIX: 2024R1 doesn't have raptorx

* minor fix

* fix minor

* Update src/pyedb/dotnet/edb.py

Co-authored-by: Sébastien Morais <146729917+SMoraisAnsys@users.noreply.github.com>

---------

Co-authored-by: ring630 <@gmail.com>
Co-authored-by: Sébastien Morais <146729917+SMoraisAnsys@users.noreply.github.com>
  • Loading branch information
hui-zhou-a and SMoraisAnsys authored Oct 18, 2024
1 parent 599e36b commit 9501694
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/pyedb/dotnet/edb.py
Original file line number Diff line number Diff line change
Expand Up @@ -3611,15 +3611,15 @@ def setups(self):
"""
setups = {}
for i in list(self.active_cell.SimulationSetups):
if i.GetType() == self.edb_api.utility.utility.SimulationSetupType.kHFSS:
if i.GetType().ToString().endswith("kHFSS"):
setups[i.GetName()] = HfssSimulationSetup(self, i)
elif i.GetType() == self.edb_api.utility.utility.SimulationSetupType.kSIWave:
elif i.GetType().ToString().endswith("kSIWave"):
setups[i.GetName()] = SiwaveSimulationSetup(self, i)
elif i.GetType() == self.edb_api.utility.utility.SimulationSetupType.kSIWaveDCIR:
elif i.GetType().ToString().endswith("kSIWaveDCIR"):
setups[i.GetName()] = SiwaveDCSimulationSetup(self, i)
elif i.GetType() == self.edb_api.utility.utility.SimulationSetupType.kRaptorX:
elif i.GetType().ToString().endswith("kRaptorX"):
setups[i.GetName()] = RaptorXSimulationSetup(self, i)
elif i.GetType() == self.edb_api.utility.utility.SimulationSetupType.kHFSSPI:
elif i.GetType().ToString().endswith("kHFSSPI"):
setups[i.GetName()] = HFSSPISimulationSetup(self, i)
return setups

Expand Down

0 comments on commit 9501694

Please sign in to comment.