@@ -1423,17 +1423,19 @@ class LosslessTransmissionLine(TwoPortElement):
14231423
14241424 .. code-block:: none
14251425
1426- TXXXXXXX N1 N2 N3 N4 Z0=VALUE <TD=VALUE> <F=FREQ <NL=NRMLEN>>
1426+ TXXXXXXX N1 N2 N3 N4 Z0=VALUE <TD=VALUE> <F=FREQ <NL=NRMLEN>> <IC=V1, I1, V2, I2>
14271427
14281428 where TD or F, NL must be specified.
14291429
14301430 Keyword Parameters:
14311431
14321432 :attr:`impedance`
14331433 alias:`Z0`
1434+ is the characteristic impedance
14341435
14351436 :attr:`time_delay`
14361437 alias:`TD`
1438+ is the transmission delay
14371439
14381440 :attr:`frequency`
14391441 alias:`F`
@@ -1451,6 +1453,13 @@ class LosslessTransmissionLine(TwoPortElement):
14511453
14521454 :attr:`normalized_length`
14531455
1456+ The transmission delay, `td`, may be specified directly (as `td=10ns`, for example).
1457+ Alternatively, a frequency `f` may be given, together with `nl`, the normalized electrical
1458+ length of the transmission line with respect to the wavelength in the line at the frequency
1459+ `f`. If a frequency is specified but `nl` is omitted, 0.25 is assumed (that is, the frequency is
1460+ assumed to be the quarter-wave frequency). Note that although both forms for expressing the line
1461+ length are indicated as optional, one of the two must be specified.
1462+
14541463 Note: Either time_delay or frequency must be given.
14551464
14561465 """
@@ -1467,13 +1476,12 @@ class LosslessTransmissionLine(TwoPortElement):
14671476
14681477 def __init__ (self , name , * args , ** kwargs ):
14691478
1470- # check: ^ xor, & bitwise and
1471- if not (('time_delay' in kwargs ) ^
1472- (('frequency' in kwargs ) & ('normalized_length' in kwargs ))):
1473- raise NameError ('Either TD or F, NL must be specified' )
1474-
14751479 super ().__init__ (name , * args , ** kwargs )
14761480
1481+ if not (self .has_parameter ('time_delay' ) or
1482+ (self .has_parameter ('frequency' ) and self .has_parameter ('normalized_length' ))):
1483+ raise NameError ('Either TD or F, NL must be specified' )
1484+
14771485####################################################################################################
14781486
14791487class LossyTransmission (TwoPortElement ):
0 commit comments