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