@@ -150,7 +150,7 @@
Loading
150 150
151 151
        PURPOSE:
152 152
153 -
           calculate the an arbitrary moment of the velocity distribution 
153 +
           calculate an arbitrary moment of the velocity distribution 
154 154
           at r times the density
155 155
156 156
        INPUT:
@@ -163,7 +163,7 @@
Loading
163 163
164 164
        OUTPUT:
165 165
166 -
           <vr^n vt^m x density> at r (no support for units)
166 +
           <vr^n vt^m x density> at r
167 167
168 168
        HISTORY:
169 169
         
@@ -202,17 +202,80 @@
Loading
202 202
    
203 203
    @physical_conversion('velocity',pop=True)
204 204
    def sigmar(self,r):
205 +
        """
206 +
        NAME:
207 +
208 +
           sigmar
209 +
210 +
        PURPOSE:
211 +
212 +
           calculate the radial velocity dispersion at radius r
213 +
214 +
        INPUT:
215 +
216 +
           r - spherical radius at which to calculate the radial velocity dispersion
217 +
218 +
        OUTPUT:
219 +
220 +
           sigma_r(r)
221 +
222 +
        HISTORY:
223 +
         
224 +
            2020-09-04 - Written - Bovy (UofT)
225 +
        """
205 226
        r= conversion.parse_length(r,ro=self._ro)
206 227
        return numpy.sqrt(self._vmomentdensity(r,2,0)
207 228
                          /self._vmomentdensity(r,0,0))
208 229
    
209 230
    @physical_conversion('velocity',pop=True)
210 231
    def sigmat(self,r):
232 +
        """
233 +
        NAME:
234 +
235 +
           sigmar
236 +
237 +
        PURPOSE:
238 +
239 +
           calculate the tangential velocity dispersion at radius r
240 +
241 +
        INPUT:
242 +
243 +
           r - spherical radius at which to calculate the tangential velocity dispersion
244 +
245 +
        OUTPUT:
246 +
247 +
           sigma_t(r)
248 +
249 +
        HISTORY:
250 +
         
251 +
            2020-09-04 - Written - Bovy (UofT)
252 +
        """
211 253
        r= conversion.parse_length(r,ro=self._ro)
212 254
        return numpy.sqrt(self._vmomentdensity(r,0,2)
213 255
                          /self._vmomentdensity(r,0,0))
214 256
215 257
    def beta(self,r):
258 +
        """
259 +
        NAME:
260 +
261 +
           sigmar
262 +
263 +
        PURPOSE:
264 +
265 +
           calculate the anisotropy at radius r
266 +
267 +
        INPUT:
268 +
269 +
           r - spherical radius at which to calculate the anisotropy
270 +
271 +
        OUTPUT:
272 +
273 +
           beta(r)
274 +
275 +
        HISTORY:
276 +
         
277 +
            2020-09-04 - Written - Bovy (UofT)
278 +
        """
216 279
        return 1.-self.sigmat(r,use_physical=False)**2./2.\
217 280
            /self.sigmar(r,use_physical=False)**2.
218 281
    

@@ -5,6 +5,7 @@
Loading
5 5
from . import streamdf
6 6
from . import streamgapdf
7 7
from . import jeans
8 +
from . import sphericaldf
8 9
from . import eddingtondf
9 10
from . import isotropicHernquistdf
10 11
from . import constantbetaHernquistdf
@@ -37,6 +38,7 @@
Loading
37 38
quasiisothermaldf= quasiisothermaldf.quasiisothermaldf
38 39
streamdf= streamdf.streamdf
39 40
streamgapdf= streamgapdf.streamgapdf
41 +
sphericaldf= sphericaldf.sphericaldf
40 42
eddingtondf= eddingtondf.eddingtondf
41 43
isotropicHernquistdf= isotropicHernquistdf.isotropicHernquistdf
42 44
constantbetaHernquistdf= constantbetaHernquistdf.constantbetaHernquistdf
Files Coverage
galpy 83.22%
Project Totals (176 files) 83.22%
1838.3
TRAVIS_OS_NAME=linux
1838.2
TRAVIS_OS_NAME=linux
1838.7
TRAVIS_OS_NAME=linux
1838.5
TRAVIS_OS_NAME=linux
1838.6
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