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

Module citifile

source code

Classes
  CitiFile
Class to hold the content of a CITI file in memory as EMPro DataSets.
Functions
CitiFile
read(path)
Reads a CITI file from disk.
source code
None
write(path, data, name=...)
Writes a empro.toolkit.DataSetMatrix or a dictionary of empro.datasource.DataSet to a CITI file.
source code
 
getPortNames(ctiFile)
Returns the port names as specified in <ctiFile>.
source code
 
stos(originalCtiFile, newCtiFile, vecPortZref, verbose=True, useZprm=False, showProgress=False)
Changes the reference impedance (PORTZ) from originalCtiFile to vecPortZref, and writes the resulting S-parameters and PORTZ to newCtiFile.
source code
Function Details

getPortNames(ctiFile)

source code 

Returns the port names as specified in <ctiFile>.
Port name format:
    #eesof Port[1] name1
    #eesof Port[2] name2
    ...
If not specified, throws an exception.

stos(originalCtiFile, newCtiFile, vecPortZref, verbose=True, useZprm=False, showProgress=False)

source code 

Changes the reference impedance (PORTZ) from originalCtiFile
to vecPortZref, and writes the resulting S-parameters and PORTZ
to newCtiFile.

@param  vecPortZref is a list of (port name, Zref) pairs
        Example: vecPortZref = [("port1", 50), ("port2", 10)]

@param  useZprm  if True: stos = (stoz, renorm, ztos)
                 else     stos = (stoy, renorm, ytos)

If the port names in vecPortZref don't match getPortNames(originalCtiFile)
an exception is thrown