Example #1
0
def test_radloss():
    tmp_radloss = radLoss(temperature,density,minAbund=minAbund)
    assert all((k in tmp_radloss.RadLoss for k in ('rate','temperature','density','minAbund',
                                                    'abundance')))
Example #2
0
def test_radloss_numpy_length_compatibility(container_type, temperature_length,
                                            density_length):
    temperature = container_type(np.linspace(1e6, 2e6, temperature_length))
    density = container_type(np.linspace(1e9, 2e9, density_length))
    _tmp_spec = radLoss(temperature, density, minAbund=1e-3)
Example #3
0
def test_radloss():
    tmp_radloss = radLoss(temperature, density, minAbund=minAbund)
    assert all(
        (k in tmp_radloss.RadLoss
         for k in ('rate', 'temperature', 'density', 'minAbund', 'abundance')))