class pwspy.utility.reflection.multilayerReflectanceEngine.Layer(mat, d, name=None)[source]

Bases: object

This represents a layer with a thickness and an index of refraction. Note: This whole system only supports lossless media, we only use the real part of the index of refraction.

  • mat (Union[Number, Series, Material]) – This can either be a number or series of numbers representing the refractive index at different wavelengths or it can be a Material in which case the refractive index will be automatically calculated.

  • d (float) – The thickness of the layer. The units that thicknesses and wavelengths are specified in must match.

  • name (Optional[str]) – An optional name which will be dislayed if the layer is plotted


Get the refractive index of the layer.


wavelengths (ndarray) – The wavelengths to calculate the refractive index at.

Return type



The refractive index.