skrf.io.general.read_all

skrf.io.general.read_all(dir='.', contains=None, f_unit=None)

Read all skrf objects in a directory

Attempts to load all files in dir, using read(). Any file that is not readable by skrf is skipped. Optionally, simple filtering can be achieved through the use of contains argument.

Parameters :

dir : str, optional

the directory to load from, default ‘.’

contains : str, optional

if not None, only files containing this substring will be loaded

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

for all Network objects, set their frequencies’s f_unit

Returns :

out : dictionary

dictionary containing all loaded skrf objects. keys are the filenames without extensions, and the values are the objects

See also

read
read a skrf object
write
write skrf object[s]
read_all
read all skrf objects in a directory
write_all
write dictionary of skrf objects to a directory

Examples

>>> rf.read_all('skrf/data/')
{'delay_short': 1-Port Network: 'delay_short',  75-110 GHz, 201 pts, z0=[ 50.+0.j],
'line': 2-Port Network: 'line',  75-110 GHz, 201 pts, z0=[ 50.+0.j  50.+0.j],
'ntwk1': 2-Port Network: 'ntwk1',  1-10 GHz, 91 pts, z0=[ 50.+0.j  50.+0.j],
'one_port': one port Calibration: 'one_port', 500-750 GHz, 201 pts, 4-ideals/4-measured,
...

Previous topic

skrf.io.general.read

Next topic

skrf.io.general.write

This Page