@@ -459,7 +459,7 @@
Loading
459 459
           2019-11-20 - Written - Starkman (UofT)
460 460
        """
461 461
        r= R if z is None else numpy.sqrt(R**2.+z**2.)
462 -
        return (r/(r+self.a))**(3.-self.alpha)/(3.-self.alpha)
462 +
        return 1./(1.+self.a/r)**(3.-self.alpha)/(3.-self.alpha) # written so it works for r=numpy.inf 
463 463
464 464
class DehnenCoreSphericalPotential(DehnenSphericalPotential):
465 465
    """Class that implements the Dehnen Spherical Potential from `Dehnen (1993) <https://ui.adsabs.harvard.edu/abs/1993MNRAS.265..250D>`_ with alpha=0 (corresponding to an inner core)
@@ -657,7 +657,7 @@
Loading
657 657
           2019-11-20 - Written - Starkman (UofT)
658 658
        """
659 659
        r= R if z is None else numpy.sqrt(R**2.+z**2.)
660 -
        return (r/(r+self.a))**3./3.
660 +
        return 1./(1.+self.a/r)**3./3. # written so it works for r=numpy.inf 
661 661
662 662
class HernquistPotential(DehnenSphericalPotential):
663 663
    """Class that implements the Hernquist potential
@@ -848,7 +848,7 @@
Loading
848 848
           2014-01-29 - Written - Bovy (IAS)
849 849
        """
850 850
        r= R if z is None else numpy.sqrt(R**2.+z**2.)
851 -
        return (r/self.a)**2./2./(1.+r/self.a)**2.
851 +
        return 1./(1.+self.a/r)**2./2. # written so it works for r=numpy.inf
852 852
853 853
    @kms_to_kpcGyrDecorator
854 854
    def _nemo_accpars(self,vo,ro):
@@ -1074,7 +1074,7 @@
Loading
1074 1074
           2014-01-29 - Written - Bovy (IAS)
1075 1075
        """
1076 1076
        r= R if z is None else numpy.sqrt(R**2.+z**2.)
1077 -
        return r/self.a/(1.+r/self.a)
1077 +
        return 1./(1.+self.a/r) # written so it works for r=numpy.inf 
1078 1078
1079 1079
class NFWPotential(TwoPowerSphericalPotential):
1080 1080
    """Class that implements the NFW potential
Files Coverage
galpy 78.95%
Project Totals (176 files) 78.95%
1841.4
TRAVIS_OS_NAME=linux
1841.3
TRAVIS_OS_NAME=linux
1841.6
TRAVIS_OS_NAME=linux
1841.5
TRAVIS_OS_NAME=linux
1841.7
TRAVIS_OS_NAME=linux

No yaml found.

Create your codecov.yml to customize your Codecov experience

Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading