import reaction_coeffs

# Time to use a reaction rate coefficient:
reaction_coeffs.const(107)
reaction_coeffs.arr(107, 103, 102)
reaction_coeffs.mod_arr(107, 103, 0.5, 102)
Example #2
0
def test_mod_arr_types4():
    try:
        reaction_coeffs.mod_arr(107,103,0.5,False)
    except TypeError as err:
        assert(type(err) == TypeError)
Example #3
0
def test_mod_arr_types3():
    try:
        reaction_coeffs.mod_arr(107,103,[0.5],102)
    except TypeError as err:
        assert(type(err) == TypeError)
Example #4
0
def test_mod_arr_types2():
    try:
        reaction_coeffs.mod_arr(107,'103',0.5,102)
    except TypeError as err:
        assert(type(err) == TypeError)
Example #5
0
def test_mod_arr_values2():
    try:
        reaction_coeffs.mod_arr(107,103,0.5,-2)
    except ValueError as err:
        assert(type(err) == ValueError)
Example #6
0
def test_mod_arr():
    assert reaction_coeffs.mod_arr(107,103,0.5,102) == 957.05129266439894