MCPcopy Create free account
hub / github.com/Cantera/cantera / test_convert_rate_coeff_to_array

Method test_convert_rate_coeff_to_array

test/python/test_utils.py:98–101  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

96 assert system.convert_activation_energy_to(x, "J/kmol") == approx(1000 * x)
97
98 def test_convert_rate_coeff_to_array(self):
99 system = ct.UnitSystem({"length": "cm"})
100 x = np.array(((3, 4), (0.5, 2.0), (1.0, 0.0)))
101 assert system.convert_rate_coeff_to(x, "m^2/kmol/s") == approx(0.0001 * x)
102
103 def test_convert_to_sequence(self):
104 system = ct.UnitSystem({"length": "km"})

Callers

nothing calls this directly

Calls 1

UnitSystemMethod · 0.45

Tested by

no test coverage detected