finesse.model.Model.parse_legacy_file
- Model.parse_legacy_file(path) Model[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,
- Returns:
finesse.model.ModelReturn the model (return self, not a copy)
See also
parse_legacyParse Finesse 2 kat script.
parseParse Finesse 3 kat script.
parse_fileParse Finesse 3 kat script file.