skrf.io.general.networkset_2_spreadsheet
- skrf.io.general.networkset_2_spreadsheet(ntwkset, file_name=None, file_type='excel', *args, **kwargs)[source]
Write a NetworkSet object to a spreadsheet, for your boss.
Write the s-parameters of a each network in the networkset to a spreadsheet. If the excel file_type is used, then each network, is written to its own sheet, with the sheetname taken from the network name attribute. This functions makes use of the pandas module, which in turn makes use of the xlrd module. These are imported during this function.
Note
The frequency unit used in the spreadsheet is take from ntwk.frequency.unit
- Parameters:
ntwkset (
NetworkSet
object) – the network to writefile_name (str, None) – the file_name to write. if None, ntwk.name is used.
file_type (['csv','excel','html']) – the type of file to write. See pandas.DataFrame.to_??? functions.
form ('db','ma','ri') – format to write data, * db = db, deg * ma = mag, deg * ri = real, imag
*args – passed to pandas.DataFrame.to_??? functions.
**kwargs – passed to pandas.DataFrame.to_??? functions.
See also
networkset_2_spreadsheet
writes a spreadsheet for many networks