Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)

src/r/a/rabacus-0.9.0/rabacus/constants/physical.py   rabacus(Download)
        self.h.units = pq.erg * pq.s
 
        self.kb = 1.3806488e-23 * pq.J / pq.K
        self.kb.units = pq.erg / pq.K
 
        self.Ry_inf = 13.60569253e0 * pq.eV
 
        self.sfkb = 5.670373e-8 * pq.W * pq.m**(-2) * pq.K**(-4)
        self.sfkb.units = pq.erg / pq.s * pq.cm**(-2) * pq.K**(-4)
 

src/r/a/rabacus-0.9.0/rabacus/constants/units.py   rabacus(Download)
        # temperature
        #------------------------------------------------
        self.K = pq.K
 
 

src/n/e/NeuroUnits-0.1.2/src/neurounits/units_backends/pquantities.py   NeuroUnits(Download)
            (second, pq.s),
            (ampere, pq.A),
            (kelvin, pq.K),
            (mole, pq.mole),
            (candela, pq.candela),

src/o/p/open-exoplanet-catalogue-python-HEAD/oecpy/assumptions.py   open-exoplanet-catalogue-python(Download)
    'tempType':
        [
            (350 * pq.K, 'Temperate'),
            (700 * pq.K, 'Warm'),
            (float('inf'), 'Hot'),

src/o/p/open-exoplanet-catalogue-python-HEAD/oecpy/equations.py   open-exoplanet-catalogue-python(Download)
def estimateStarTemperature(M_s):
    """ Estimates stellar temperature using the main sequence relationship T ~ 5800*M^0.65
    """
    return (5800*pq.K * float(M_s.rescale(aq.M_s)**0.65)).rescale(pq.K)
 

src/o/p/open-exoplanet-catalogue-python-HEAD/oecpy/plots.py   open-exoplanet-catalogue-python(Download)
    'd': ('Distance to System', pq.pc),
    'R': ('Planet Radius', aq.R_j),
    'T': ('Planet Temperature', pq.K),
    'M': ('Planet Mass', aq.M_j),
    'calcSurfaceGravity()': ('Planet Surface Gravity', aq.ms2),
    # 'dec': ('DEC', None),
    'R': ('Stellar Radius', aq.R_s),
    'T': ('Stellar Temperature', pq.K),
    'M': ('Stellar Mass', aq.M_s),
    'calcSurfaceGravity()': ('Planet Surface Gravity', aq.ms2),

src/o/p/open-exoplanet-catalogue-python-HEAD/oecpy/astroclasses.py   open-exoplanet-catalogue-python(Download)
            'magK': 1,
            'magV': 1,
            'temperature': pq.K,
        }
 

src/o/p/open-exoplanet-catalogue-python-HEAD/oecpy/tests/test_params.py   open-exoplanet-catalogue-python(Download)
    def testTempEstimatedWhenTrue(self):
        del self.planet.params['temperature']
        self.assertAlmostEqual(self.planet.T, 402.175111 * pq.K, 4)
        self.assertTrue('Calculated Temperature' in self.planet.flags.flags)
 

src/o/p/open-exoplanet-catalogue-python-HEAD/oecpy/tests/test_equations.py   open-exoplanet-catalogue-python(Download)
    def test_works_mars(self):
 
        a = 1.524 * pq.au
        A_p = 0.25
        T_s = 5800 * pq.K
        R_s = 1 * aq.R_s
 
        answer = 231.1 * pq.K  # TODO actual answer 227.17
    def test_works_sun(self):
        answer = 5800 * pq.K
        result = eq.estimateStarTemperature(1*aq.M_s)
 
        self.assertAlmostEqual(answer, result, 0)
 
    def test_works_hd189(self):
        answer = 4939 * pq.K
    def test_works_gj1214(self):
 
        T_p = 520 * pq.K
        T_s = 3026 * pq.K
        R_s = 0.21 * aq.R_s