Skip to content

Commit

Permalink
Small update to move info to top of documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
dccote committed May 2, 2021
1 parent 6ace484 commit f6ea89e
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions raytracing/zemax.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,20 @@ class Surface(NamedTuple):
spacing:float = 0

class ZMXReader:
"""
Zemax file (ZMX) reader for compound lenses. The reader is not
complete, but it can return a `MatrixGroup` that will behave like a
compound lens with the spherical interfaces and spacing between
elements.
This only works with ZMX files, not ZMF files. The ZMX files are
text-based and the ZMF files are binary without documentation.
It is not particularly robust: many parameters are currently ignored
and it could fail for files not from Thorlabs or Edmund (the only
files tested).
"""
def __init__(self, filepath):
"""
Zemax file (ZMX) reader for compound lenses. The reader is not
complete, but it can return a `MatrixGroup` that will behave like a
compound lens with the spherical interfaces and spacing between
elements.
It is not particularly robust. Many parameters are currently ignored
and it could fail for files not from Thorlabs or Edmund (the only
files tested).
"""
self.filepath = filepath
self.name = filepath
self.lines = []
Expand Down

0 comments on commit f6ea89e

Please sign in to comment.