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

Method run_write_2d

test/python/test_composite.py:729–738  ·  view source on GitHub ↗
(self, mode)

Source from the content-addressed store, hash-verified

727 self.run_write_2d("yaml")
728
729 def run_write_2d(self, mode):
730 outfile = self.test_work_path / f"solutionarray_2d.{mode}"
731 outfile.unlink(missing_ok=True)
732
733 states = ct.SolutionArray(self.gas, (2, 5))
734 states.save(outfile, "arr")
735
736 b = ct.SolutionArray(self.gas)
737 b.restore(outfile, "arr")
738 assert b.shape == states.shape
739
740 @pytest.mark.skipif("native" not in ct.hdf_support(),
741 reason="Cantera compiled without HDF support")

Callers 2

test_write_hdf_2dMethod · 0.95
test_write_yaml_2dMethod · 0.95

Calls 3

saveMethod · 0.95
restoreMethod · 0.95
SolutionArrayMethod · 0.80

Tested by

no test coverage detected