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

Method __enter__

python/dolfinx/io/utils.py:147–149  ·  view source on GitHub ↗

Enter context manager.

(self)

Source from the content-addressed store, hash-verified

145 Encoding = _cpp.io.XDMFFile.Encoding
146
147 def __enter__(self):
148 """Enter context manager."""
149 return self
150
151 def __exit__(self, exception_type, exception_value, traceback):
152 """Exit context manager and close file."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected