def calculate(self, T, P, zs, ws, method):
if method == SIMPLE:<EOL><INDENT>ks = [i(T, P) for i in self.ThermalConductivityGases]<EOL>return mixing_simple(zs, ks)<EOL><DEDENT>elif method == LINDSAY_BROMLEY:<EOL><INDENT>ks = [i(T, P) for i in self.ThermalConductivityGases]<EOL>mus = [i(T, P) for i in self.ViscosityGases]<EOL>return Lindsay_Bromley(T=T, ys=zs, ks=ks, mus=mus, Tbs=self.Tbs, MWs=self.MWs)<EOL><DEDENT>else:<EOL><INDENT>raise Exception('<STR_LIT>')<EOL><DEDENT>
r'''Method to calculate thermal conductivity of a gas mixture at 
        temperature `T`, pressure `P`, mole fractions `zs` and weight fractions
        `ws` with a given method.

        This method has no exception handling; see `mixture_property`
        for that.

        Parameters
        ----------
        T : float
            Temperature at which to calculate the property, [K]
        P : float
            Pressure at which to calculate the property, [Pa]
        zs : list[float]
            Mole fractions of all species in the mixture, [-]
        ws : list[float]
            Weight fractions of all species in the mixture, [-]
        method : str
            Name of the method to use

        Returns
        -------
        kg : float
            Thermal conductivity of gas mixture, [W/m/K]