Calculator.py
def assemble_analytical_transmittance(self):
        """Create an analytical expression for transmittance of the entire LayeredMedia material.
        
        Based on whether light is p-polarized or s-polarized (info stored in transferMatrix). 
        
        Args:
             None
        
        Return:
            void
        
        """
        epsilon_first,epsilon_last,kz_first,kz_last = sympy.symbols('epsilon_1,epsilon_{0},k_z1,k_z{0}'.format(self.numLayers+2))
        if self.transferMatrix.polarization == 'p':
            self.analyticalTransmittance = epsilon_first*kz_last/(epsilon_last*kz_first)*abs(self.analyticalTransmissionCoefficient)**2
        
        elif self.transferMatrix.polarization == 's':
            self.analyticalTransmittance = kz_last/kz_first*abs(self.analyticalTransmissionCoefficient)**2
        
        else:
            Logger.raiseException('Invalid polarization. Can only be \'p\' or \'s\'',Exception=ValueError)
Create an analytical expression for transmittance of the entire LayeredMedia material.
        
        Based on whether light is p-polarized or s-polarized (info stored in transferMatrix). 
        
        Args:
             None
        
        Return:
            void
        
        
Create an analytical expression for transmittance of the entire LayeredMedia material.
Based on whether light is p-polarized or s-polarized (info stored in transferMatrix).

None

void
Create an analytical expression for transmittance of the entire LayeredMedia material . Based on whether light is p - polarized or s - polarized ( info stored in transferMatrix ) . None void
def assemble_analytical_transmittance(self):
        epsilon_first,epsilon_last,kz_first,kz_last = sympy.symbols('epsilon_1,epsilon_{0},k_z1,k_z{0}'.format(self.numLayers+2))
        if self.transferMatrix.polarization == 'p':
            self.analyticalTransmittance = epsilon_first*kz_last/(epsilon_last*kz_first)*abs(self.analyticalTransmissionCoefficient)**2
        elif self.transferMatrix.polarization == 's':
            self.analyticalTransmittance = kz_last/kz_first*abs(self.analyticalTransmissionCoefficient)**2
        else:
            Logger.raiseException('Invalid polarization. Can only be \'p\' or \'s\'',Exception=ValueError)
def assemble_analytical_transmittance ( self ) : epsilon_first , epsilon_last , kz_first , kz_last = sympy . symbols ( 'epsilon_1,epsilon_{0},k_z1,k_z{0}' . format ( self . numLayers + 2 ) ) if self . transferMatrix . polarization == 'p' : self . analyticalTransmittance = epsilon_first * kz_last / ( epsilon_last * kz_first ) * abs ( self . analyticalTransmissionCoefficient ) ** 2 elif self . transferMatrix . polarization == 's' : self . analyticalTransmittance = kz_last / kz_first * abs ( self . analyticalTransmissionCoefficient ) ** 2 else : Logger . raiseException ( 'Invalid polarization. Can only be \'p\' or \'s\'' , Exception = ValueError )
Create an analytical expression for transmittance of the entire LayeredMedia material.
Create an analytical expression for transmittance of the entire LayeredMedia material .
"""Create an analytical expression for transmittance of the entire LayeredMedia material.
        
        Based on whether light is p-polarized or s-polarized (info stored in transferMatrix). 
        
        Args:
             None
        
        Return:
            void
        
        """
self