@@ -149,8 +149,8 @@ def plot_insertion_losses(self, threshold=-3, plot=True):
149
149
----------
150
150
threshold : float, int, optional
151
151
Threshold to determine shorted ports in dB.
152
- plot: bool
153
- Whether to plot.
152
+ plot : bool, optional
153
+ Whether to plot. The default is ``True``.
154
154
155
155
Returns
156
156
-------
@@ -171,7 +171,7 @@ def plot(self, index_couples=None, show=True):
171
171
----------
172
172
index_couples : list, optional
173
173
List of indexes couple to plot. Default is ``None`` to plot all ``port_tuples``.
174
- show: bool
174
+ show : bool
175
175
Whether to plot. Default is ``True``.
176
176
177
177
Returns
@@ -191,8 +191,6 @@ def plot(self, index_couples=None, show=True):
191
191
def plot_return_losses (self ): # pragma: no cover
192
192
"""Plot all return losses.
193
193
194
- Parameters
195
- ----------
196
194
Returns
197
195
-------
198
196
bool
@@ -344,7 +342,7 @@ def get_next_xtalk_index(self, tx_prefix=""):
344
342
Returns
345
343
-------
346
344
list
347
- list of index couples representing Near End XTalks
345
+ List of index couples representing Near End XTalks.
348
346
349
347
"""
350
348
if tx_prefix :
@@ -432,27 +430,26 @@ def plot_fext_xtalk_losses(self, tx_prefix, rx_prefix, skip_same_index_couples=T
432
430
433
431
@pyaedt_function_handler ()
434
432
def get_worst_curve (self , freq_min = None , freq_max = None , worst_is_higher = True , curve_list = None , plot = True ):
435
- """This method analyze a solution data object with multiple curves and
436
- find the worst curve returning its name and an ordered dictionary with each curve mean.
437
- Actual algorithm simply takes the mean of the magnitude over the frequency range.
433
+ """Analyze a solution data object with multiple curves and find the worst curve.
434
+ Take the mean of the magnitude over the frequency range.
438
435
439
436
Parameters
440
437
----------
441
438
freq_min : float, optional
442
- minimum frequency to analyze in GHz (None to 0). Default value is ``None``.
439
+ Minimum frequency to analyze in GHz (None to 0). Default value is ``None``.
443
440
freq_max : float, optional
444
- maximum frequency to analyze in GHz (None to max freq). Default value is ``None``.
441
+ Maximum frequency to analyze in GHz (None to max freq). Default value is ``None``.
445
442
worst_is_higher : bool
446
- boolean. if True, the worst curve is the one with higher mean value. Default value is ``None ``.
443
+ Worst curve is the one with higher mean value. Default value is ``True ``.
447
444
curve_list : list
448
445
List of [m,n] index of curves on which to search. None to search on all curves. Default value is ``None``.
449
446
plot : bool, optional
450
447
Whether to plot or not the chart.
451
448
452
449
Returns
453
450
-------
454
- type
455
- worst element str , dictionary of ordered expression and their mean
451
+ tuple
452
+ Worst element, dictionary of ordered expression.
456
453
457
454
"""
458
455
0 commit comments