diff --git a/pyaedt/edb_core/edb_data/simulation_setup.py b/pyaedt/edb_core/edb_data/simulation_setup.py index 1fe695f616f..adfe33d7562 100644 --- a/pyaedt/edb_core/edb_data/simulation_setup.py +++ b/pyaedt/edb_core/edb_data/simulation_setup.py @@ -214,6 +214,8 @@ def add_frequency_sweep(self, name=None, frequency_sweep=None): if not frequency_sweep: frequency_sweep = [["linear scale", "0.1GHz", "10GHz", "0.1GHz"]] + elif not isinstance(frequency_sweep[0], list): + frequency_sweep = [frequency_sweep] if not name: name = generate_unique_name("sweep")