skrf.network.load_all_touchstones

skrf.network.load_all_touchstones(dir='.', contains=None, f_unit=None)

loads all touchtone files in a given dir into a dictionary.

Parameters :

dir : string

the path

contains : string

a string the filenames must contain to be loaded.

f_unit : [‘hz’,’mhz’,’ghz’]

the frequency unit to assign all loaded networks. see frequency.Frequency.unit.

Returns :

ntwkDict : a dictonary with keys equal to the file name (without

a suffix), and values equal to the corresponding ntwk types

Examples

>>> ntwk_dict = rf.load_all_touchstones('.', contains ='20v')

This Page