PYME.misc.zemax module¶
Created on Fri Apr 05 11:57:53 2013
@author: David Baddeley
- class PYME.misc.zemax.DefaultGlass(n=1.0, typ=2)¶
Bases:
object
- mirror = 1¶
- n(wavelength)¶
- refract = 2¶
- class PYME.misc.zemax.Glass(data, typ=2)¶
Bases:
DefaultGlass
- n(wavelength)¶
- class PYME.misc.zemax.ZMX(data, glasses)¶
Bases:
object
- toPyOptic(position, direction=[0, 0, 1], fb=None, flip=False, f=None, orientation=[0, 1, 0])¶
- to_pyoptic(placement, fb=None, flip=False, f=None, orientation=[0, 1, 0])¶
- PYME.misc.zemax.decompZar(filename)¶
zemax .zar files are a series of concatenated, LZW compressed text-format files.
This function attempts to locate and decompress each of the sections, returning a dictionary of strings where the keys are the origninal(uncompressed) file names.
- PYME.misc.zemax.readZar(filename)¶
- PYME.misc.zemax.read_cached_zar(filename)¶