skrf.io.general.write_all

skrf.io.general.write_all(dict_objs, dir='.', *args, **kwargs)

Write a dictionary of skrf objects individual files in dir.

Each object is written to its own file. The filename used for each object is taken from its key in the dictionary. If no extension exists in the key, then one is added. See write() for a list of extensions. If you would like to write the dictionary to a single output file use write().

Parameters :

dict_objs : dict

dictionary of skrf objects

dir : str

directory to save skrf objects into

*args, **kwargs : :

passed through to write(). overwrite option may be of use.

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

Notes

Any object in dict_objs that is pickl-able will be written.

Examples

Writing a diction of different skrf objects

>>> from skrf.data import line, short
>>> d = {'ring_slot':ring_slot, 'one_port_cal':one_port_cal}
>>> rf.write_all(d)

Previous topic

skrf.io.general.write

Next topic

skrf.io.general.save_sesh

This Page