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

Method test_get_state

test/python/test_thermo.py:2063–2072  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2061 assert states.meta['spam'] == 'eggs'
2062
2063 def test_get_state(self):
2064 states = ct.SolutionArray(self.gas, 4)
2065 H, P = states.HP
2066 assert H.shape == (4,)
2067 assert P.shape == (4,)
2068
2069 S, P, Y = states.SPY
2070 assert S.shape == (4,)
2071 assert P.shape == (4,)
2072 assert Y.shape == (4, self.gas.n_species)
2073
2074 def test_idealgas_getters(self):
2075 N = 11

Callers

nothing calls this directly

Calls 1

SolutionArrayMethod · 0.80

Tested by

no test coverage detected