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

Method test_replace_rate

test/python/test_reaction.py:1249–1257  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1247 species=self.species, reactions=[rxn], adjacent=self.adj)
1248
1249 def test_replace_rate(self):
1250 # check replacing reaction rate expression
1251 if self._yaml is not None:
1252 rxn = self.from_yaml()
1253 else:
1254 rxn = self.from_rate(self._rate_obj)
1255 rxn = self.from_empty()
1256 rxn.rate = self._rate_obj
1257 self.check_rxn(rxn)
1258
1259 def test_roundtrip(self):
1260 # check round-trip instantiation via input_data

Callers

nothing calls this directly

Calls 4

from_yamlMethod · 0.95
from_rateMethod · 0.95
from_emptyMethod · 0.95
check_rxnMethod · 0.95

Tested by

no test coverage detected