Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Edb cfg discrete #1006

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/pyedb/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def custom_show_warning(message, category, filename, lineno, file=None, line=Non
#

pyedb_path = os.path.dirname(__file__)
__version__ = "0.36.dev0"
__version__ = "0.37.dev0"
version = __version__

#
Expand Down
6 changes: 3 additions & 3 deletions src/pyedb/dotnet/edb_core/sim_setup_data/data/sweep_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,11 +160,11 @@ def freq_sweep_type(self):
@freq_sweep_type.setter
def freq_sweep_type(self, value):
edb_freq_sweep_type = self._edb_object.TFreqSweepType
if value in [0, "kInterpolatingSweep"]:
if value in [0, "kInterpolatingSweep", "interpolation"]:
self._edb_object.FreqSweepType = edb_freq_sweep_type.kInterpolatingSweep
elif value in [1, "kDiscreteSweep"]:
elif value in [1, "kDiscreteSweep", "discrete"]:
self._edb_object.FreqSweepType = edb_freq_sweep_type.kDiscreteSweep
elif value in [2, "kBroadbandFastSweep"]:
elif value in [2, "kBroadbandFastSweep", "broadband"]:
self._edb_object.FreqSweepType = edb_freq_sweep_type.kBroadbandFastSweep
elif value in [3, "kNumSweepTypes"]:
self._edb_object.FreqSweepType = edb_freq_sweep_type.kNumSweepTypes
Expand Down
1 change: 1 addition & 0 deletions src/pyedb/dotnet/edb_core/utilities/simulation_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@ def add_sweep(self, name, frequency_set: list = None, **kwargs):
for k, v in kwargs.items():
if k in dir(sweep_data):
setattr(sweep_data, k, v)
sweep_data.freq_sweep_type = kwargs.get("type") if kwargs.get("type") else "interpolation"

if frequency_set is None:
sweep_type = "linear_scale"
Expand Down
Loading