def calculate(self, T, method):
if method == ZABRANSKY_SPLINE:<EOL><INDENT>return self.Zabransky_spline.calculate(T)<EOL><DEDENT>elif method == ZABRANSKY_QUASIPOLYNOMIAL:<EOL><INDENT>return self.Zabransky_quasipolynomial.calculate(T)<EOL><DEDENT>elif method == ZABRANSKY_SPLINE_C:<EOL><INDENT>return self.Zabransky_spline_iso.calculate(T)<EOL><DEDENT>elif method == ZABRANSKY_QUASIPOLYNOMIAL_C:<EOL><INDENT>return self.Zabransky_quasipolynomial_iso.calculate(T)<EOL><DEDENT>elif method == ZABRANSKY_SPLINE_SAT:<EOL><INDENT>return self.Zabransky_spline_sat.calculate(T)<EOL><DEDENT>elif method == ZABRANSKY_QUASIPOLYNOMIAL_SAT:<EOL><INDENT>return self.Zabransky_quasipolynomial_sat.calculate(T)<EOL><DEDENT>elif method == COOLPROP:<EOL><INDENT>return CoolProp_T_dependent_property(T, self.CASRN , '<STR_LIT>', '<STR_LIT:l>')<EOL><DEDENT>elif method == POLING_CONST:<EOL><INDENT>return self.POLING_constant<EOL><DEDENT>elif method == CRCSTD:<EOL><INDENT>return self.CRCSTD_constant<EOL><DEDENT>elif method == ROWLINSON_POLING:<EOL><INDENT>Cpgm = self.Cpgm(T) if hasattr(self.Cpgm, '<STR_LIT>') else self.Cpgm<EOL>return Rowlinson_Poling(T, self.Tc, self.omega, Cpgm)<EOL><DEDENT>elif method == ROWLINSON_BONDI:<EOL><INDENT>Cpgm = self.Cpgm(T) if hasattr(self.Cpgm, '<STR_LIT>') else self.Cpgm<EOL>return Rowlinson_Bondi(T, self.Tc, self.omega, Cpgm)<EOL><DEDENT>elif method == DADGOSTAR_SHAW:<EOL><INDENT>Cp = Dadgostar_Shaw(T, self.similarity_variable)<EOL>return property_mass_to_molar(Cp, self.MW)<EOL><DEDENT>elif method in self.tabular_data:<EOL><INDENT>return self.interpolate(T, method)<EOL><DEDENT>else:<EOL><INDENT>raise Exception('<STR_LIT>')<EOL><DEDENT>
r'''Method to calculate heat capacity of a liquid at temperature `T`
        with a given method.

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

        Parameters
        ----------
        T : float
            Temperature at which to calculate heat capacity, [K]
        method : str
            Name of the method to use

        Returns
        -------
        Cp : float
            Heat capacity of the liquid at T, [J/mol/K]