MCPcopy Create free account
hub / github.com/FEniCS/dolfinx / __exit__

Method __exit__

python/dolfinx/io/utils.py:128–130  ·  view source on GitHub ↗

Exit context manager and close file.

(self, exception_type, exception_value, traceback)

Source from the content-addressed store, hash-verified

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."""

Callers

nothing calls this directly

Calls 1

closeMethod · 0.95

Tested by

no test coverage detected