finesse.model.Model.unparse_file

Model.unparse_file(path, inplace=True)[source]

Serialise the model to kat script in a file.

Parameters
pathstr, pathlib.Path, or file-like

The path or file object to write kat script to. If an open file object is passed, it will be written to and left open. If a path is passed, it will be opened, written to, then closed.