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

Method test_select_rows

test/python/test_composite.py:436–443  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

434 assert lines[0].split() == ["T", "D", "H2"]
435
436 def test_select_rows(self):
437 arr = ct.SolutionArray(self.gas, 25)
438 ix = [2, 5, 6, 9, 15, 3]
439 arr2 = arr[ix]
440 self.check(arr2, arr2.info(width=self.width), 6)
441 lines = arr2.info(width=self.width).split("\n")[1:-2]
442 loc = [int(line.split()[0]) for line in lines]
443 assert loc == ix
444
445 def test_water_simple(self):
446 w = ct.Water()

Callers

nothing calls this directly

Calls 4

checkMethod · 0.95
SolutionArrayMethod · 0.80
splitMethod · 0.80
infoMethod · 0.45

Tested by

no test coverage detected