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

Method __enter__

python/dolfinx/io/utils.py:99–101  ·  view source on GitHub ↗

Enter context manager.

(self)

Source from the content-addressed store, hash-verified

97 self._cpp_object = _vtxwriter(comm, filename, cpp_objects, engine, mesh_policy)
98
99 def __enter__(self):
100 """Enter context manager."""
101 return self
102
103 def __exit__(self, exception_type, exception_value, traceback):
104 """Exit context manager and close file."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected