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

Method run_write_str_column

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

Source from the content-addressed store, hash-verified

689 self.run_write_str_column("yaml")
690
691 def run_write_str_column(self, mode):
692 outfile = self.test_work_path / f"solutionarray_str.{mode}"
693 outfile.unlink(missing_ok=True)
694
695 states = ct.SolutionArray(self.gas, 3, extra={'spam': 'eggs'})
696 states.save(outfile, "arr")
697
698 b = ct.SolutionArray(self.gas, extra={'spam'})
699 b.restore(outfile, "arr")
700 self.check_arrays(states, b)
701
702 @pytest.mark.skipif("native" not in ct.hdf_support(),
703 reason="Cantera compiled without HDF support")

Callers 2

Calls 4

saveMethod · 0.95
restoreMethod · 0.95
check_arraysMethod · 0.95
SolutionArrayMethod · 0.80

Tested by

no test coverage detected