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)
def test_mod_arr_types4(): try: reaction_coeffs.mod_arr(107,103,0.5,False) except TypeError as err: assert(type(err) == TypeError)
def test_mod_arr_types3(): try: reaction_coeffs.mod_arr(107,103,[0.5],102) except TypeError as err: assert(type(err) == TypeError)
def test_mod_arr_types2(): try: reaction_coeffs.mod_arr(107,'103',0.5,102) except TypeError as err: assert(type(err) == TypeError)
def test_mod_arr_values2(): try: reaction_coeffs.mod_arr(107,103,0.5,-2) except ValueError as err: assert(type(err) == ValueError)
def test_mod_arr(): assert reaction_coeffs.mod_arr(107,103,0.5,102) == 957.05129266439894