def __init__(self,amp=1.,sigma=0.1,ro=None,vo=None):
        """
        NAME:

           __init__

        PURPOSE:

           Initialize an IsothermalDiskPotential

        INPUT:

           amp - an overall amplitude

           sigma - velocity dispersion (can be a Quantity)

        OUTPUT:

           instance

        HISTORY:

           2018-04-11 - Written - Bovy (UofT)

        """
        linearPotential.__init__(self,amp=amp,ro=ro,vo=vo)
        if _APY_LOADED and isinstance(sigma,units.Quantity):
            sigma= sigma.to(units.km/units.s).value/self._vo
        self._sigma2= sigma**2.
        self._H= sigma/numpy.sqrt(8.*numpy.pi*self._amp)
        self.hasC= True
def __init__ ( self , amp = 1. , sigma = 0.1 , ro = None , vo = None ) : linearPotential . __init__ ( self , amp = amp , ro = ro , vo = vo ) if _APY_LOADED and isinstance ( sigma , units . Quantity ) : sigma = sigma . to ( units . km / units . s ) . value / self . _vo self . _sigma2 = sigma ** 2. self . _H = sigma / numpy . sqrt ( 8. * numpy . pi * self . _amp ) self . hasC = True
NAME:

           __init__

        PURPOSE:

           Initialize an IsothermalDiskPotential

        INPUT:

           amp - an overall amplitude

           sigma - velocity dispersion (can be a Quantity)

        OUTPUT:

           instance

        HISTORY:

           2018-04-11 - Written - Bovy (UofT)