diff --git a/pyaedt/generic/touchstone_parser.py b/pyaedt/generic/touchstone_parser.py index bbd6e271698..0083430f499 100644 --- a/pyaedt/generic/touchstone_parser.py +++ b/pyaedt/generic/touchstone_parser.py @@ -105,13 +105,16 @@ def get_insertion_loss_index(self, threshold=-3): """ temp_list = [] - freq_idx = 0 - s_db = self.s_db[freq_idx, :, :] + s_db = self.s_db[0:2, :, :] for i in self.port_tuples: if i[0] != i[1]: - loss = s_db[i[0], i[1]] + loss = s_db[0, i[0], i[1]] if loss > threshold: temp_list.append(i) + elif loss < -90: + loss = s_db[1, i[0], i[1]] + if loss > threshold: + temp_list.append(i) return temp_list def plot_insertion_losses(self, threshold=-3, plot=True):