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

Method test_component_names

test/python/test_reactor.py:1378–1383  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1376 assert i + N1 == r.component_index(name)
1377
1378 def test_component_names(self):
1379 self.create_reactors(add_surf=True)
1380 for i in range(self.net1.n_vars):
1381 assert self.r1.component_index(self.r1.component_name(i)) == i
1382 assert self.net1.component_name(i) == '{}: {}'.format(self.r1.name,
1383 self.r1.component_name(i))
1384
1385 def integrate(self, surf=False):
1386 for t in np.arange(0.5, 50, 1.0):

Callers

nothing calls this directly

Calls 2

create_reactorsMethod · 0.95
formatMethod · 0.45

Tested by

no test coverage detected