optiland.fileio.oslo
OSLO File I/O subpackage for Optiland.
This package handles the reading and writing of OSLO .len files.
-
OsloReader
alias of OsloToOpticConverter
-
class OsloWriter[source]
Exports an Optic object to an OSLO .len file.
- Parameters:
None
-
write(optic: Optic, filepath: str) → list[str][source]
Write an optic to an OSLO .len file.
- Parameters:
-
- Returns:
A list of warning strings (empty if no warnings).
-
save_oslo_file(optic: Optic, filepath: str) → list[str][source]
Save an Optic to an OSLO .len file.
- Parameters:
-
- Returns:
A list of warnings.