Package empro :: Package toolkit :: Module portparam
[frames] | no frames]

Module portparam

source code

Functions
DataSetMatrix
getSMatrix(context=None, sim=None, fftSize=None)
Returns the matrix of scattering parameters of a simulation.
source code
DataSetMatrix
getVoltages(context=None, sim=None, run=None, transform='NoTransform', fftSize=None)
Returns a column matrix of port voltages of one run, using port numbers as subscripts.
source code
DataSetMatrix
getCurrents(context=None, sim=None, run=None, transform='NoTransform', fftSize=None)
Returns a column matrix of port currents of one run, using port numbers as subscripts.
source code
DataSetMatrix
getRefImpedances(context=None, sim=None)
Returns a diagonal matrix of the port reference impedances, using port numbers as subscripts.
source code
 
stoy(s, zRef=50, name=None)
Transform S parameters to Y parameters.
source code
 
stoz(s, zRef=50, name=None)
Transform S parameters to Z parameters.
source code
Dictionary
EMProPortNb2Name()
Returns a dictionary with the portnumbers of the enabled ports in the current project as keys and (portname,mode) tuples as values.
source code
dictOut
switchKeyValue(dictIn)
Returns a dictionary that is the inverse of the input dictionary.
source code
dictC
chainMapping(dictA, dictB, ignoreKeyError= True)
Returns a dictionary that is the composite of the mappings expressed by the input dictionaries.
source code
 
getEMPro2ADS_portmapping(ADS_map) source code
 
extractRLC(ctiFile, freqIndex=0) source code
Function Details

getSMatrix(context=None, sim=None, fftSize=None)

source code 

Returns the matrix of scattering parameters of a simulation. The function parameters have the same meaning as for empro.toolkit.dataset.getResult. The resulting matrix is not necessarily square, as only columns for active ports will be available. Port numbers are used a row and column subscripts.

Returns: DataSetMatrix

getVoltages(context=None, sim=None, run=None, transform='NoTransform', fftSize=None)

source code 

Returns a column matrix of port voltages of one run, using port numbers as subscripts. The function parameters have the same meaning as for the function empro.toolkit.dataset.getResult. Row and column subscripts are port numbers or tuples of port numbers, similar to getSMatrix

Returns: DataSetMatrix

getCurrents(context=None, sim=None, run=None, transform='NoTransform', fftSize=None)

source code 

Returns a column matrix of port currents of one run, using port numbers as subscripts. The function parameters have the same meaning as for the function empro.toolkit.dataset.getResult. Row and column subscripts are port numbers or tuples of port numbers, similar to getSMatrix

Returns: DataSetMatrix

getRefImpedances(context=None, sim=None)

source code 

Returns a diagonal matrix of the port reference impedances, using port numbers as subscripts. The function parameters have the same meaning as for the function empro.toolkit.dataset.getResult. Row and column subscripts are port numbers or tuples of port numbers, similar to getSMatrix

Returns: DataSetMatrix

stoy(s, zRef=50, name=None)

source code 

Transform S parameters to Y parameters.

- s: can be a Python float, complex, DataSet or DataSetMatrix.
- zRef: must be a Python float or complex number for now.  DataSet or DataSetMatrix is not supported yet.
- name: optional name of result, default is "Y".

stoz(s, zRef=50, name=None)

source code 

Transform S parameters to Z parameters.

- s: can be a Python float, complex, DataSet or DataSetMatrix.
- zRef: must be a Python float or complex number for now.  DataSet or DataSetMatrix is not supported yet.
- name: optional name of result, default is "Z".

EMProPortNb2Name()

source code 

Returns a dictionary with the portnumbers of the enabled ports in the current project as keys and (portname,mode) tuples as values. For internal ports, which do not have modes, the second element in the tuple is '-1'. E.g.: {1: ('S(7)', -1), 2: ('S(4)', -1), 3: ('S(3)', -1), 4: ('S(1)_S(2)', 1), 5: ('S(1)_S(2)', 2), 6: ('S(6)', 1)}

Returns: Dictionary

switchKeyValue(dictIn)

source code 

Returns a dictionary that is the inverse of the input dictionary. For each key value pair (k_in,v_in) in the input there will be a key value pair (k_out,v_out)=(v_in,k_in) in the output. This function is deprecated !!!

Returns: dictOut

chainMapping(dictA, dictB, ignoreKeyError= True)

source code 

Returns a dictionary that is the composite of the mappings expressed by the input dictionaries. If (e1,e2) in dictA and (e2,e3) in dictB then (e1,e3) in dictC. If (e1,e2) in dictA but dictB has no key e2 then a warning is printed (Portname not found) and if ignoreKeyError = False a KeyError will be thrown. This function is deprecated !!!

Returns: dictC