finesse.model.Model.parse_legacy_file¶
- Model.parse_legacy_file(path)[source]¶
Parses legacy (Finesse 2) kat script from a file and adds the resulting objects to the model.
- Parameters
- pathstr,
pathlib.Path
, or file-like The path or file object to read kat script from. If an open file object is passed, it will be read from and left open. If a path is passed, it will be opened, read from, then closed.
- pathstr,
See also
parse_legacy
Parse Finesse 2 kat script.
parse
Parse Finesse 3 kat script.
parse_file
Parse Finesse 3 kat script file.