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

Method __exit__

python/dolfinx/io/utils.py:151–153  ·  view source on GitHub ↗

Exit context manager and close file.

(self, exception_type, exception_value, traceback)

Source from the content-addressed store, hash-verified

149 return self
150
151 def __exit__(self, exception_type, exception_value, traceback):
152 """Exit context manager and close file."""
153 self.close()
154
155 def write_mesh(self, mesh: Mesh, xpath: str = "/Xdmf/Domain") -> None:
156 """Write mesh to file."""

Callers

nothing calls this directly

Calls 1

closeMethod · 0.95

Tested by

no test coverage detected