treetime/treeanc.py
def gtr(self, value):
        """
        Set a new GTR object

        Parameters
        -----------

         value : GTR
            the new GTR object
        """
        if not (isinstance(value, GTR) or isinstance(value, GTR_site_specific)):
            raise TypeError(" GTR instance expected")
        self._gtr = value
def gtr(self, value):
        if not (isinstance(value, GTR) or isinstance(value, GTR_site_specific)):
            raise TypeError(" GTR instance expected")
        self._gtr = value
def gtr ( self , value ) : if not ( isinstance ( value , GTR ) or isinstance ( value , GTR_site_specific ) ) : raise TypeError ( " GTR instance expected" ) self . _gtr = value
Set a new GTR object

        Parameters
        -----------

         value : GTR
            the new GTR object
Set a new GTR object