@@ -158,35 +158,6 @@ def excitations(self):
158
158
"""
159
159
return list (self .oboundary .GetAllPortsList ())
160
160
161
- @property
162
- def get_all_sparameter_list (self , excitation_names = []):
163
- """List of all S parameters for a list of excitations.
164
-
165
- Parameters
166
- ----------
167
- excitation_names : list, optional
168
- List of excitations. The default is ``[]``, in which case
169
- the S parameters for all excitations are to be provided.
170
- For example, ``["1", "2"]``.
171
-
172
- Returns
173
- -------
174
- list
175
- List of strings representing the S parameters of the excitations.
176
- For example, ``["S(1, 1)", "S(1, 2)", S(2, 2)]``.
177
-
178
- """
179
- if not excitation_names :
180
- excitation_names = self .excitations
181
- spar = []
182
- k = 0
183
- for i in excitation_names :
184
- k = excitation_names .index (i )
185
- while k < len (excitation_names ):
186
- spar .append ("S({},{})" .format (i , excitation_names [k ]))
187
- k += 1
188
- return spar
189
-
190
161
@pyaedt_function_handler ()
191
162
def change_design_settings (self , settings ):
192
163
"""Set HFSS 3D Layout Design Settings.
@@ -235,224 +206,6 @@ def export_mesh_stats(self, setup_name, variation_string="", mesh_path=None):
235
206
self .odesign .ExportMeshStats (setup_name , variation_string , mesh_path )
236
207
return mesh_path
237
208
238
- @pyaedt_function_handler ()
239
- def get_all_return_loss_list (
240
- self , excitation_names = None , excitation_name_prefix = "" , math_formula = "" , net_list = None
241
- ):
242
- """Get a list of all return losses for a list of excitations.
243
-
244
- Parameters
245
- ----------
246
- excitation_names : list, optional
247
- List of excitations. The default is ``None``, in which case
248
- the return losses for all excitations are provided.
249
- For example ``["1", "2"]``.
250
- excitation_name_prefix : string, optional
251
- Prefix to add to the excitation names. The default is ``""``,
252
- math_formula : str, optional
253
- One of the available AEDT mathematical formulas to apply. For example, ``abs, dB``.
254
- net_list : list, optional
255
- List of nets to filter the output. The default is ``None``, in which case all parameters are returned.
256
-
257
- Returns
258
- -------
259
- list of str
260
- List of strings representing the return losses of the excitations.
261
- For example, ``["S(1, 1)", S(2, 2)]``.
262
-
263
- References
264
- ----------
265
-
266
- >>> oEditor.GetAllPorts
267
- """
268
- if excitation_names == None :
269
- excitation_names = []
270
-
271
- if not excitation_names :
272
- excitation_names = list (self .excitations )
273
- if excitation_name_prefix :
274
- excitation_names = [i for i in excitation_names if excitation_name_prefix .lower () in i .lower ()]
275
- spar = []
276
- for i in excitation_names :
277
- if not net_list or (net_list and [net for net in net_list if net in i ]):
278
- if math_formula :
279
- spar .append ("{}(S({},{}))" .format (math_formula , i , i ))
280
- else :
281
- spar .append ("S({},{})" .format (i , i ))
282
- return spar
283
-
284
- @pyaedt_function_handler ()
285
- def get_all_insertion_loss_list (
286
- self , trlist = None , reclist = None , tx_prefix = "" , rx_prefix = "" , math_formula = "" , net_list = None
287
- ):
288
- """Get a list of all insertion losses from two lists of excitations (driver and receiver).
289
-
290
- Parameters
291
- ----------
292
- trlist : list, optional
293
- List of drivers. The default is ``[]``. For example, ``["1"]``.
294
- reclist : list, optional
295
- List of receivers. The default is ``[]``. The number of drivers equals
296
- the number of receivers. For example, ``["2"]``.
297
- tx_prefix : str, optional
298
- Prefix to add to driver names. For example, ``"DIE"``. The default is ``""``.
299
- rx_prefix : str, optional
300
- Prefix to add to receiver names. For example, ``"BGA"``. The default is ``""``.
301
- math_formula : str, optional
302
- One of the available AEDT mathematical formulas to apply. For example, ``abs, dB``.
303
- net_list : list, optional
304
- List of nets to filter the output. The default is ``None``, in which
305
- case all parameters are returned.
306
-
307
- Returns
308
- -------
309
- list of str
310
- List of strings representing insertion losses of the excitations.
311
- For example, ``["S(1,2)"]``.
312
-
313
- References
314
- ----------
315
-
316
- >>> oEditor.GetAllPorts
317
- """
318
- if trlist is None :
319
- trlist = [i for i in list (self .excitations )]
320
-
321
- if reclist is None :
322
- reclist = [i for i in list (self .excitations )]
323
- if tx_prefix :
324
- trlist = [i for i in trlist if i .startswith (tx_prefix )]
325
- if rx_prefix :
326
- reclist = [i for i in reclist if i .startswith (rx_prefix )]
327
- spar = []
328
- if not net_list and len (trlist ) != len (reclist ):
329
- self .logger .error ("The TX and RX lists should be the same length." )
330
- return False
331
- if net_list :
332
- for el in net_list :
333
- x = [i for i in trlist if el in i ]
334
- y = [i for i in reclist if el in i ]
335
- for x1 in x :
336
- for y1 in y :
337
- if x1 [- 2 :] == y1 [- 2 :]:
338
- if math_formula :
339
- spar .append ("{}(S({},{}))" .format (math_formula , x1 , y1 ))
340
- else :
341
- spar .append ("S({},{})" .format (x1 , y1 ))
342
- break
343
- else :
344
- for i , j in zip (trlist , reclist ):
345
- if math_formula :
346
- spar .append ("{}(S({},{}))" .format (math_formula , i , j ))
347
- else :
348
- spar .append ("S({},{})" .format (i , j ))
349
- return spar
350
-
351
- @pyaedt_function_handler ()
352
- def get_next_xtalk_list (self , trlist = None , tx_prefix = "" , math_formula = "" , net_list = None ):
353
- """Get a list of all the near end XTalks from a list of excitations (driver and receiver).
354
-
355
- Parameters
356
- ----------
357
- trlist : list, optional
358
- List of drivers. The default is ``None``. For example,
359
- ``["1", "2", "3"]``.
360
- tx_prefix : str, optional
361
- Prefix to add to driver names. For example, ``"DIE"``. The default is ``""``.
362
- math_formula : str, optional
363
- One of the available AEDT mathematical formulas to apply. For example, ``abs, dB``.
364
- net_list : list, optional
365
- List of nets to filter the output. The default is ``None``, in which case
366
- all parameters are returned.
367
-
368
- Returns
369
- -------
370
- list of str
371
- List of strings representing near end XTalks of the excitations.
372
- For example, ``["S(1, 2)", "S(1, 3)", "S(2, 3)"]``.
373
-
374
- References
375
- ----------
376
-
377
- >>> oEditor.GetAllPorts
378
- """
379
- next_xtalks = []
380
- if not trlist :
381
- trlist = [i for i in list (self .excitations ) if tx_prefix in i ]
382
- for i in trlist :
383
- if not net_list or (net_list and [net for net in net_list if net in i ]):
384
- k = trlist .index (i ) + 1
385
- while k < len (trlist ):
386
- if math_formula :
387
- next_xtalks .append ("{}(S({},{}))" .format (math_formula , i , trlist [k ]))
388
- else :
389
- next_xtalks .append ("S({},{})" .format (i , trlist [k ]))
390
- k += 1
391
- return next_xtalks
392
-
393
- @pyaedt_function_handler ()
394
- def get_fext_xtalk_list (
395
- self ,
396
- trlist = None ,
397
- reclist = None ,
398
- tx_prefix = "" ,
399
- rx_prefix = "" ,
400
- skip_same_index_couples = True ,
401
- math_formula = "" ,
402
- net_list = None ,
403
- ):
404
- """Geta list of all the far end XTalks from two lists of excitations (driver and receiver).
405
-
406
- Parameters
407
- ----------
408
- trlist : list, optional
409
- List of drivers. The default is ``[]``. For example,
410
- ``["1", "2"]``.
411
- reclist : list, optional
412
- List of receiver. The default is ``[]``. For example,
413
- ``["3", "4"]``.
414
- tx_prefix : str, optional
415
- Prefix for driver names. For example, ``"DIE"``. The default is ``""``.
416
- rx_prefix : str, optional
417
- Prefix for receiver names. For examples, ``"BGA"`` The default is ``""``.
418
- skip_same_index_couples : bool, optional
419
- Whether to skip driver and receiver couples with the same index position.
420
- The default is ``True``, in which case the drivers and receivers
421
- with the same index position are considered insertion losses and
422
- excluded from the list.
423
- math_formula : str, optional
424
- One of the available AEDT mathematical formulas to apply. For example, ``abs, dB``.
425
- net_list : list, optional
426
- List of nets to filter the output. The default is ``None``, in which case all
427
- parameters are returned.
428
-
429
- Returns
430
- -------
431
- list of str
432
- List of strings representing the far end XTalks of the excitations.
433
- For example, ``["S(1, 4)", "S(2, 3)"]``.
434
-
435
- References
436
- ----------
437
-
438
- >>> oEditor.GetAllPorts
439
- """
440
-
441
- fext = []
442
- if trlist is None :
443
- trlist = [i for i in list (self .excitations ) if tx_prefix in i ]
444
- if reclist is None :
445
- reclist = [i for i in list (self .excitations ) if rx_prefix in i ]
446
- for i in trlist :
447
- if not net_list or (net_list and [net for net in net_list if net in i ]):
448
- for k in reclist :
449
- if not skip_same_index_couples or reclist .index (k ) != trlist .index (i ):
450
- if math_formula :
451
- fext .append ("{}(S({},{}))" .format (math_formula , i , k ))
452
- else :
453
- fext .append ("S({},{})" .format (i , k ))
454
- return fext
455
-
456
209
@property
457
210
def modeler (self ):
458
211
"""Modeler object.
0 commit comments