Exit context manager and close file.
(self, exception_type, exception_value, traceback)
| 126 | return self |
| 127 | |
| 128 | def __exit__(self, exception_type, exception_value, traceback): |
| 129 | """Exit context manager and close file.""" |
| 130 | self.close() |
| 131 | |
| 132 | def write_mesh(self, mesh: Mesh, t: float = 0.0) -> None: |
| 133 | """Write mesh to file for a given time.""" |