(self, mode)
| 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") |
no test coverage detected