write(file=None, *args, **kwargs)¶
Write the Network to disk using the
- file (str or file-object) – filename or a file-object. If left as None then the filename will be set to Network.name, if its not None. If both are None, ValueError is raised.
- **kwargs (*args,) – passed through to
If the self.name is not None and file is can left as None and the resultant file will have the .ntwk extension appended to the filename.
>>> n = rf.N(f=[1,2,3],s=[1,1,1],z0=50, name = 'open') >>> n.write() >>> n2 = rf.read('open.ntwk')
- write any skrf object
- read any skrf object